How do you move certain files from yesterday to another directory?

Posted on: October 12, 2011 Posted by: John Huh Comments: 0

How do you move certain files from yesterday to another directory?

How do you move certain files from yesterday to another directory?

In current directory:
[code]
find . -type f -atime -1 -exec mv {} /newdirectory/ \;

From "/olddirectory/":
find /olddirectory/ -type f -atime -1 -exec mv {} /newdirectory/ \;
[/code]

Leave a Reply:

Your email address will not be published. Required fields are marked *