Wednesday, April 9, 2014

Command to copy last 3 days file to destination folder.

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.

find . -type f -mtime -3 | awk -F / '{print "cp  "$2 " /tmp/test/"}' | sh –x

No comments: