argument list too long

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Feb 27 13:06:10 UTC 2008


On 2008-02-27 12:49, Wojciech Puchar <wojtek at 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.



More information about the freebsd-questions mailing list