On Fri, Nov 19, 2010 at 10:29 AM, Peter Humphrey <pe...@humphrey.ukfsn.org> wrote: > Hello list, > > Just to expose my ignorance again, would someone lift my blinkers > please? I'm recovering from an infection and my brain is stuck. > > It's time to start pruning old stuff from the website I run, which has > 2200 files in 200 directories.
You can use -mtime option in find to return files whose modification time are older than X days ago. For example I have a job to delete files who are 48 hours old using something like: find /directoryname -mtime +1 -delete (something like that, i'm writing it from memory, refer to manpage)