Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2008 09:29:37 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        Giorgos Keramidas <keramida@ceid.upatras.gr>, freebsd-questions@freebsd.org
Subject:   Re: argument list too long
Message-ID:  <20080227152937.GJ3328@dan.emsphone.com>
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
In the last episode (Feb 27), Wojciech Puchar said:
>> 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.

That's less than xargs's default of 5000 :)  The xargs manpage explains
it all.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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