On Fri, 04 Aug 2000, James (Jim) Hatridge wrote about, Find/move question.:
> HI all,
>
> I'm trying to "find" all .gif files and "mv" them to another dir. Here is
> what I am using (all on one line):
>
> find /home/hatridge/.netscape/cache/ -mindepth 2 -name "*.gif" -exec mv \{
> \} /home/hatridge/.gif \;
>
> But instead of having all the gif files in the new dir here is what I'm
> getting:
>
> mv: {: No such file or directory
> mv: }: No such file or directory
> mv: {: No such file or directory
> mv: }: No such file or directory
What you are trying to do "may" have deleted many *.gif files without you
knowing, never try things like this without "knowing" what the
conciquencies are.
However i tryed the following and it "copied" gif files from /opt/ to
/home/pa3gcu/tmp and then with thier origanal names.
Something like 1400 files.
find /opt/* -mindepth 2 -name "*.gif" -exec cp \{} /home/pa3gcu/tmp/. \;
Once you have "cp" copying the files ok, then its time to use "mv" and not
before. In a case i tryed from one "test dir" to another with a simalar
syntax to yours, one file was created in the destination dir, \*.gif, i saw
it keep changing in file size, so ALL files were written to that file AND
the origanal files were deleted, i wonder how many files you have really
lost, (if any).
>
> Any ideas what I'm doing wrong?
>
> TIA!
>
>
> Jim Hatridge
> [EMAIL PROTECTED]
> Proud Linux User #88484
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs