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]