[PLUG] avoiding "Argument list too long" error.

Brent Rieck bsr at spek.org
Mon Oct 9 21:29:37 UTC 2006


Hello,
   Occasionally, like today, I have to grep/slice/dice/munge ~30K files 
and bash it seems can't deal with that many files, here's an example:

   $ zcat * | grep "foo"
   bash: /bin/zcat: Argument list too long

Yes, it seems that I could finally figure out how to use xargs or 
something but I'd rather that bash just worked.  Is there a way to make 
that happen?

thanks,
Brent



More information about the PLUG mailing list