Author: Dan
Date: 08-10-05 05:06
I wanted to delete all the spam/virus logs/emails older than ten days. This does it:
cd /var/virusmails && /usr/bin/find . -ctime +10 -exec rm {} \;
first, go to the right directory.
Then find all files that were created more than 10 days ago. And remove each one.
More examples at http://www.intuitive.com/tyu24/chap19.shtml
--
Webmaster
|
|