Ubuntu exclua arquivos com mais de 5 dias
#this deletes all files in /path/to/directory/ older than 7 days
find /path/to/directory/ -type f -mtime +7 -execdir rm -- '{}' \;
Friendly Hawk