On Thu, Apr 13, 2006 at 08:09:18AM +1000, Peter Rundle wrote:
> [ .. ] 
> But congrats on resisting the politically correct push to use xargs, go 
> -exec I reckon. I've yet to see any real advantage in using xargs when 
> combined with find just the fact that you have to remember to add -0 
> because file names can have space in them these days, what a mess,
> whereas exec rm -f {} works everytime, no dramas.

Yeah, not a bad call - it follows the 'correct first, fast later
/ premature optimization is the root of all evil' principle.

Especially if you want to use the script on Unices that
don't have the -0 option to find/xargs.

Still, it can be a lot slower to use -exec.


Matt

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to