From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: Plan 9 annoyances (was: Re: [9fans] mv vs cp) From: rog@vitanuova.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20011009104245.DE77F19A0F@mail.cse.psu.edu> Date: Tue, 9 Oct 2001 11:55:04 +0100 Topicbox-Message-UUID: 02ef829a-eaca-11e9-9e20-41e7f4b1d025 > > i've missed find several times. xargs always struck me as > > compensating for poor shell design. > > Isn't the problem the argv limits of number of characters and number of > words? i don't think so entirely... for instance if i want to grep through an entire source tree, i don't want to wait until the tree has been traversed completely before the text searching begins. using du -a . | awk '{print $2}' | xargs grep pattern often gives me results much faster than grep pattern `{du -a . | awk '{print $2}'} the latter usually works. i don't know what the kernel limit is on command-line arguments, but it's more than sufficient to pass all the source files in /sys/src (6764 files, ~160K). rog.