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

Roderick A. Anderson raanders at acm.org
Mon Oct 9 21:57:35 UTC 2006


Brent Rieck wrote:
> Daniel Hedlund wrote:
> 
>>>   $ zcat * | grep "foo"
>>>   bash: /bin/zcat: Argument list too long
>>
>>
>> In this particular case, have you tried using zgrep?
> 
> 
> Yes, and no it doesn't work, it really appears to be a bash issue:
> 
> bash: /bin/zgrep: Argument list too long
> 
> --Brent

for f in *; do grep "foo" $f; done

But for Inquiring Minds:

	what does "ls -1  | wc -l" give as results.

Rod
-- 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug




More information about the PLUG mailing list