unix: finding files older than x days
Posted by phillip Wed, 13 Dec 2006 16:12:00 GMT
find all files older than 60 days:
find /some/dir -atime +60
in combination with xargs this is very useful for removing old rails sessions:
find /u/apps/my_app/current/tmp/sessions/ -atime +60 | xargs rm