Unix: remove old files 

Joined:
04/09/2007
Posts:
776

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 {} \;
Share |
| Comment  | Tags