Wednesday, November 16, 2011

Copying files Updated in last 21 days - Linux

Following command will copy the files, updated in last 21 days from "source" to "destination"

$ pwd
source
$ find . -mtime -21 -type f -exec cp {} /var/www/somwhere../destination \;

No comments:

Post a Comment