Having trouble with cp command in my script.
Hello I知 having problems with what I知 sure should be a simple problem. I知 new to scripting so please be gentle.
I have this bit of script:
find / \( -iname "*.${file1}" -o -iname "*.${file2}" -o -iname "*.${file3}" -o -iname "*.${file4}" -o -iname "*.${file5}" -o -iname "*.${file6}" -o -iname "*.${file7}" -o -iname "*.${file8}" -o -iname "*.${file9}" -o -iname "*.${file10}" \) -exec cp {} /home/knoppix/files/ \;
Basically it is supposed to search the computer for certain file types and copy them to /home/knoppix/files/ The problem I have is that it finds the files and copies them but they all appear to be zero in size. Can anybody tell me what I知 doing wrong?
Thanks
Mark
|