From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 13:06:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C0A310656C5 for ; Wed, 27 Feb 2008 13:06:10 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id B30A48FC2A for ; Wed, 27 Feb 2008 13:06:08 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=0) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id m1RD5kf4015320; Wed, 27 Feb 2008 15:05:54 +0200 Received: by kobe.laptop (Postfix, from userid 1000) id D0A5122802; Wed, 27 Feb 2008 15:05:40 +0200 (EET) Date: Wed, 27 Feb 2008 15:05:40 +0200 From: Giorgos Keramidas To: Wojciech Puchar Message-ID: <20080227130540.GA2044@kobe.laptop> References: <20080227100132.G1831@wojtek.tensor.gdynia.pl> <47C52A64.5000701@locolomo.org> <20080227111551.GA2403@kobe.laptop> <20080227124822.C2519@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080227124822.C2519@wojtek.tensor.gdynia.pl> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.971, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.43, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: argument list too long X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 13:06:10 -0000 On 2008-02-27 12:49, Wojciech Puchar wrote: >> one can easily write: >> >> find . -name '*.ogg' | \ >> while read file ; do \ >> blah "${file}" >> done >> >> xargs(1) is another popular tool for processing large argument lists: >> >> find -name '*.ogg' | xargs blah > > unless program "blah" starts slowly, and it's better to give it 2000 params > at once. > > but i've asked to be sure what is actual limit, and used xargs -n 2000 to > do the rest. Yeah, that's a fair point. xargs is good for that :-) > thank you You are welcome, of course.