Oh, yes the EXEC command in FIND is extremely powerful...

I.E.

" find / -iname *.doc --exec cp {} /Documents \; " 

Omit the outer quotes of course...

Translation...

Starting from the root, find every file with a suffix of .doc then
execute a copy command to copy that file into the /Documents directory,
do this ad-nauseum.

-JMS

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Randy Kramer
Sent: Sunday, July 29, 2001 11:37 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [newbie] Mass-copying to different filenames


Sridhar Dhanapalan wrote:
> Have you tried looking at "man mv", or even "man bash"?

Yup, more than once.  4405 lines in man bash.  Read it while trying to
deal with other problems.  

Is there something I've missed?

Randy Kramer


Reply via email to