View Single Post
  #2  
Old 11-13-2007, 03:02 PM
Fluffy_Shark Fluffy_Shark is offline
Member
 
Join Date: Aug 2007
Posts: 56
Default Re: shell script question

A very easy solution would be something like:

find /path/to/dir -mtime X -delete

This should delete all files in the directory older than X days. I haven't tried it so just look it up in the find manual if there are problems.

-Fluffy_Shark
Reply With Quote