atom feed12 messages in org.freebsd.freebsd-questionsargument list too long
FromSent OnAttachments
Wojciech PucharFeb 27, 2008 9:04 am 
Erik NorgaardFeb 27, 2008 9:16 am 
MelFeb 27, 2008 10:19 am 
Giorgos KeramidasFeb 27, 2008 11:16 am 
Wojciech PucharFeb 27, 2008 11:52 am 
Giorgos KeramidasFeb 27, 2008 1:05 pm 
RWFeb 27, 2008 2:21 pm 
Giorgos KeramidasFeb 27, 2008 2:53 pm 
Dan NelsonFeb 27, 2008 3:29 pm 
Wojciech PucharFeb 27, 2008 5:00 pm 
Dan NelsonFeb 27, 2008 5:02 pm 
Wojciech PucharFeb 27, 2008 5:17 pm 
Subject:argument list too long
From:Wojciech Puchar (woj@wojtek.tensor.gdynia.pl)
Date:Feb 27, 2008 11:52:02 am
List:org.freebsd.freebsd-questions

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