Harold Gutch <logix(at)foobar.franken.de> wrote:
> Hm, ich ueberlege gerade und komm nicht drauf. Vermutlich dachte
> ich an irgendwas in der Richtung der maximalen Anzahl der
> Elemente, die beim exec() uebergeben werden koennen, aber ein
> "find /usr -type f | ls -l" macht gerade keine Probleme, und da
^^
Da fehlt wohl ein »xargs«.
> sind bei mir ca. 370000 Dateien.
Das ist ja gerade der Sinn von xargs, daß es automatisch
mehrere Aufrufe macht, wenn die Argumente nicht alle in
einen exec()-Aufruf reinpassen. Das ist der Grund, warum
man in Shellskripten häufig »echo * | xargs foobar« statt
»foobar *« sieht.
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. "What is this talk of 'release'? We do not make software 'releases'. Our software 'escapes', leaving a bloody trail of designers and quality assurance people in its wake." 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 - 19:35:19 CET