find . -type f -daystart -mtime -2 -exec cp "{}" [PathToTargetDirectory/] \;
-daystart -mtime -2
starts with the beginning of today counting files modified -2*24 hours ago ...
-exec receives found filename "{}"
... only works with one directory-level - not with nested folders!!
No comments:
Post a Comment