Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2008 15:05:40 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: argument list too long
Message-ID:  <20080227130540.GA2044@kobe.laptop>
In-Reply-To: <20080227124822.C2519@wojtek.tensor.gdynia.pl>
References:  <20080227100132.G1831@wojtek.tensor.gdynia.pl> <47C52A64.5000701@locolomo.org> <20080227111551.GA2403@kobe.laptop> <20080227124822.C2519@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2008-02-27 12:49, Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080227130540.GA2044>