move file by modify date

November 5, 2009 at 20:01:45
Specs: solaris
any body can help how move files from one directory by modify date by command line?

See More: move file by modify date

Report •

November 6, 2009 at 13:46:05
I think you will probably need a shell script ....

Well, then again, you might try something like this:

# untested
find . -type f -mtime +2 | xargs -I {} cp {} /usr/nails/backupdir

The above find command, from the current directory, copies files modified 2 days ago to my backupdir. Change cp to mv when you are sure it works.

Report •

March 31, 2010 at 04:11:59
using cp command and it also automatically modify date with time

Report •
Related Solutions

Ask Question