Below command can be used to copy past 3 days files to a destination folder.
Below command can be modified to match your requirement.
* run the command from the file location.
Below command can be modified to match your requirement.
* run the command from the file location.
find . -type f -mtime -3 | awk -F /
'{print "cp "$2 " /tmp/test/"}' | sh –x
No comments:
Post a Comment