copy by date
hi all,
thanks for great of forums linuxquestions.org i just need to make copy files have 2 year old to another directory i know how to use cp command but i am not able to do that please any help! thanks in advance for your help |
First find the files
Code:
man find |
Something like this should do it. Might want to test it somewhere "safe" first. ;)
Code:
find /old/file/dir/ -mtime +730 -exec cp {} /new/copy/dir/ \; For more details and information on find, consult its manual and info pages. It can be quite useful. :study: |
All times are GMT -5. The time now is 08:48 AM. |