[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vmware packaged as .deb



On Tue, Jul 06, 2004 at 01:34:20PM +0100, Thomas Adam wrote:
> --- William Ballard <40618.nospam@comcast.net> 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.



Reply to: