To Find and Remove Files that has updated x days ago
Where X is the number of days
find . -mtime +X -exec ls -l {} \;
to remove these files
find . -mtime +X -exec rm -f {} \;
This entry was posted on Thursday, July 28th, 2011 at 9:38 am and is filed under Linux. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.