On Tue, Jul 06, 2004 at 01:34:20PM +0100, Thomas Adam wrote: > --- William Ballard <[EMAIL PROTECTED]> wrote: > > Just some tips on using find: > > > rm -r `find /usr/local -name '*vmware* -type d` > > find /usr/local -name '*vmware*' -exec rm -rf {} \;
Oh lord, I've opened the can of worms. The xargs version is best of all correct? The tradeoffs between the three are (1) my version = easiest for me to grok (I think, it treats literals and functions the same); (2) your version = launches 1 process per file, not a big deal in the case of rm, and (3) xargs = only launches 1 process, the only way to go if 1000s of files will match, command must support reading args from stdin. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]