The simplest way to remove files older than $NUMBER of days..
Dry run (files will be NOT deleted, you will see a list with files older than 100 days)
1 | find /var/log/squid3/ -mtime +100 -exec echo {} \; | less |
Another dry run, see what you will delete :
1 2 3 | find /var/log/squid3/ -mtime +600 -exec echo rm {} \; rm /var/log/squid3/access.log.0 rm /var/log/squid3/access.log.2 |
Finally if you decided to remove the files:
1 | find /var/log/squid3/ -mtime +600 -exec rm {} \; |




