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 \;

Comments

Popular posts from this blog

How to Reset Root Password in Drupal 7 with phpMyAdmin

Drupal - Hiding field group and its Children