find ./ -mtime 5 -type f | xargs rm

This will remove files last modified 5*24 hours ago from the current and
subsequent directories.

-----Original Message-----
I am wondering what string of commands are necessary to delete all files
in
a directory that were created more than 5 days previously. I know it's
gonna be a compound command and/or script but I'm not sure what exectly
to
code.  Anyone have anything in their bag of tricks I could adapt?

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to