3/20/2006
Automatically Delete Old Files
Add this to your crontab:
find /path/to/files -type f -atime +30 -exec rm {} \;
Adjust /path/to/files to your directory of choice and 30 to the number of days to keep.
Popularity: 10%
Add this to your crontab:
Adjust /path/to/files to your directory of choice and 30 to the number of days to keep.
Popularity: 10%