nix, shell, perl, php, mysql and mac os x tips and tricks

Monday, February 27, 2006

Delete files older than x days

find /home/mysite/dir/ -type f -mtime +35 -exec rm {} \;

No comments:

Post a Comment