Nicolas Rachinsky <list(at)rachinsky.de> wrote:
> * Oliver Fromme <olli(at)lurza.secnetix.de> [2004-03-05 10:27 +0100]:
> > Peter Ross <Peter.Ross(at)alumni.tu-berlin.de> wrote:
> > > Peter Ross sagte:
> > > > find . -type f -exec gzip {} \;
> >
> > Igitt. :-)
> >
> > Viel besser: find . -type f -print0 | xargs gzip
>
> xargs -0 gzip
Oops, ja, hatte ich vergessen.
> > Der -exec-Primary bei find gehört meiner Meinung nach abge-
> > schafft.
>
> Warum? Ich finde es manchmal ganz praktisch.
In welcher konkreten Situation?
Meiner Meinung nach ist -exec völlig überflüssig und hat
ausschließlich Nachteile, vor allem in der Performance,
die im Vergleich zu xargs zuweilen gruselig übel sein kann.
Gruß
Olli
-- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "That's what I love about GUIs: They make simple tasks easier, and complex tasks impossible." -- John William Chambless To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org with "unsubscribe de-bsd-questions" in the body of the messageReceived on Fri 05 Mar 2004 - 16:37:48 CET