Remove file older than *
Par Arnaud Charlier, lundi 22 août 2011 à 11:15 :: Linux et Debian :: #43 :: rss
This small command allow you to remove files based on time.
find /path/to/files* -maxdepth 0 -mtime +5 -exec rm {} \;5 days without recursivity
find . -name "*.bak" -type f -mtime +5 -deleteRemove file recursive (try without -detelete to see the result)
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire
Les commentaires pour ce billet sont fermés.