vali %!s(int64=6) %!d(string=hai) anos
pai
achega
6742249524
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      commands/rmlog.sh

+ 7 - 0
commands/rmlog.sh

@@ -0,0 +1,7 @@
+#!/bin/sh
+pathbase="/home/swooleProV2/dataInterface/logs/"
+fullpath=${pathbase}`date -d '7 days ago' +%Y-%m-%d`
+
+if [ -d $fullpath ];then
+   rm  -rf   $fullpath
+fi