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

Posted on: October 12, 2011 Posted by: JJ 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]