Login or sign up Lost password?
Login or sign up
for logitem in `ls $logdir` ; do mv $logdir/$logitem $weeklogs/$dirdate done cd $weeklogs tar -cvf $oldlogs/$$dirdate # Delete any uncompressed log files that over a week old.