Results 1 to 3 of 3
I have been trying, unsuccessfully, to concoct either a script or a command which would copy some files that I am able to "find" by using
"find -name '*.ext' -ctime ...
- 05-20-2007 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 6
Stumbling programmer
I have been trying, unsuccessfully, to concoct either a script or a command which would copy some files that I am able to "find" by using
"find -name '*.ext' -ctime n"
Can anyone contribute some code/coding?
Muchly appreciate any help.
- 05-20-2007 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
This copies files whose status was changed in last 3 days to /home/user:
RegardsCode:find -ctime -3 -iname '*.ext' -exec cp {} /home/user \;
- 05-20-2007 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 6
It does so.
Thank you so VERY much.
I REALLY hope to get a handle on this sometime soon.
Thanks again
Allan


Reply With Quote