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

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

thank you



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