Deleting all files over a certain age on a Linux server
To delete files on a Linux server that are all over 3 days old, use this:
find /log/ -type f -mtime -3 -exec rm {} \;
This command will find all files in /log over 3 days old and will run the rm command for each of them.

November 11, 2011 - 6:11 pm
The above command actually deletes all log files 3 days old or less. Should be +3 to delete older.
January 31, 2012 - 10:28 am
Not sure what flavour of linux you’re using but this works on our Red Hat servers just fine.
March 27, 2012 - 5:13 pm
Don’t reinvent the wheel. Use the `tmpwatch` or `tmpreaper` commands to clean up old files.