Esiste un comando per eliminare tutti i file in una directory che non sono stati modificati in N giorni? Devo ripulire alcuni vecchi registri.
Risposta accettata:
 Questo cancellerà tutti i file più vecchi di 5 giorni, puoi inserire un -name '*log' anche lì per essere più precisi e potresti voler specificare un maxdepth anche nel comando trova.
 find /some/dir -type f -mtime +5 -delete