Date scripting
Chasecreek Systemhouse
chasecreek.systemhouse at gmail.com
Fri Mar 24 03:01:38 UTC 2006
On 3/23/06, Chris Norman <cnorman at rnibncw.ac.uk> wrote:
> Hi people,
> I need to check files to see how old they are.
Something to play with:
find /home/sam -mtime +30 -exec rm -f {} \;
find $path -mtime +$days -type f -name \*.Z -exec rm {} \;
find $path -mtime +$days -type f -name 'Server.Log*' -exec rm {} \;
All found via google.
--
WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/
More information about the fedora-list
mailing list