1825783 Members
2034 Online
109687 Solutions
New Discussion

mv files by date

 
ACS_2
Occasional Contributor

mv files by date

How can I move a group of files that were all created on the same date? I have about 30 files that were created on the same date that I want to move to a different location. How can I do that without moving them 1 by 1?
2 REPLIES 2
Alan Riggs
Honored Contributor

Re: mv files by date

find . -mtime (number of days back that the files were created) -exec ll {} ;

Once you verify that the listed files are correct use:

find . -mtime (days) -exec mv {} ;
Jose Vidal
Advisor

Re: mv files by date

Dont forget to escape the ";" at the end of the line.