Deleting files that have not been modified over a certain number of days
by Mahdi Sajjadpour

cd /dir/that/you/want/to/delte/old/files/in/
find . -mtime +120 -name "*.log" -print -ls -exec /usr/bin/rm -rf {} \;

where 120 means 120 days since the last time the file was modified. I like to delete old .tar.gz files (installs) that way as well.

Copyright by techTips