On Wed, May 03, 2000 at 09:10:51PM +1000, Terry Collins wrote:
> Nick Croft wrote:
> > 
> ...snip....
> 
> >         -exec mv {} somedirectory \;
> 
> Yep, it is in the archive {:-).
> Hmm, I really need something like mhonarc for multiple directories.
> 
> There is a way of quoting that I can never remember that makes -exec
> work
> 
> something like -exec \{  }\ ;

-exec \{\} \;  (or "-exec '{}' ';'" or some combination)

you just have to stop the braces and comma being interpreted by the
shell


also, providing you are under the command line length, this is usually
faster:
 mv `find . -print` somedirectory
since it only starts one find and one mv, instead of one mv per file

-- 
 - Gus
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to