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

Monday, October 4, 2010

Recursively delete old directories

careful with this one!
/usr/bin/find /home/user/oldlogs/ -maxdepth 1 -type d -mtime +90 -exec rm -rf {} \;

No comments:

Post a Comment