mercredi 1 avril 2015

[Linux] Find and move files older than a date

list them :
find . -mtime +7 -type f -exec ls -l "{}" \;


move them :
find . -mtime +7 -type f -exec mv "{}" <your_destination_directory> \;

Aucun commentaire:

Categories