bash my little bash
Hi ...reading the manual for the find command i have just written a script that finds the files that have been modified since the time that a specific file was created...
find $1 -name /etc/timestamp -mindepth $1
find exactly returns what i need... now i want to copy all these files to a specific dir..
I have tried to copy them using the command
cp `find $1 -name /etc/timestamp -mindepth $1` $SAVETODIR
It propably works fine.... but still has a problem that i want to remove
If one of the files being copied is damaged or something else... then the copy stops .....
I want to handle that situation and simply skip the corrupted file and proceed with the remaining......
So i think that the best i need to do is a for loop iteration so i can easily skip the files that have some kind of problem...
Plz suggest me a way for writing that code.....
Thx alot..
Have a nice day
Last edited by alaios; 01-08-2005 at 12:03 PM.
|