Unix: remove old files
April 26, 2007 03:27:41 Last update: April 26, 2007 03:27:41
Use this command to remove files (whose name ends with .log) that were modified 15 (or more) days ago:
find . -name '*.log' -mtime +15 -exec rm {} \;