How do I move a file from a specific date in Unix?

How do I move a file from a specific date in Unix?
Answer
How it works
  1. find . – mindepth 1 -maxdepth 1. …
  2. -mtime -7. This tells find to select only files less than seven days old.
  3. -exec mv -t /destination/path {} + This tells find to execute a mv command to move those files to /destination/path .
 

Tìm kiếm

Back
Top