Computing.Net > Forums > Solaris > move file by modify date

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

move file by modify date

Reply to Message Icon

Name: suylyvar
Date: November 5, 2009 at 20:01:45 Pacific
OS: solaris
Subcategory: General
Comment:

any body can help how move files from one directory by modify date by command line?
Br,



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: November 6, 2009 at 13:46:05 Pacific
Reply:

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.


0
Reply to Message Icon

Related Posts

See More





Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: move file by modify date

How get files by giving date/month/year www.computing.net/answers/solaris/how-get-files-by-giving-datemonthyear/5143.html

Removing Files Issue www.computing.net/answers/solaris/removing-files-issue/4478.html

move files b/w partitions on solari www.computing.net/answers/solaris/move-files-bw-partitions-on-solari/2839.html