[Gllug] gzipping old log files

t.clarke tim at seacon.co.uk
Tue Nov 12 13:01:27 UTC 2002


I may be off the mark here, but if it is your intention to gzip OLD (out of
date) log files, you could try doing:

cd /directory;   find ./ -type f -mtime +10 -exec gzip {} \;

In the above example +10  = more than 10 days since file last updated/created


Tim

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list