Re: grep command help

From: Andreas Schulze (b79xan_at_gmx.de)
Date: 04/28/04


Date: Wed, 28 Apr 2004 22:23:15 +0200


"sproch" <sproch_75@yahoo.com> schrieb im Newsbeitrag
news:608334f1.0404281202.474d75b2@posting.google.com...
> Hello all,
>
> When i try to search for a string in a dir with grep command like:
> grep "string" <dir_path>/*.vhdl i get the following error:
>
> ---- START OF MESSAGE---------
> /bin/ksh: /usr/bin/grep: 0403-027 The parameter list is too long
> ------END OF MESSAGE ---------
>
> It looks to me that the grep command is failing because of a large
> number of *.vhdl files in the <dir_path>.
> Can somebody tell me how to overcome this problem? Is there a variable
> that governs the max number of files that grep command can process?
>
> If i go in a loop doing a grep on each file, it makes my program very
> slow.
>
> Regards,
> Sudhi Proch

Hallo Sudhi,

search comp.unix.aix for the keywords"grep xargs" and sort the resulting
output by date. There are about 100+ threads already concerned with that
question/problem. It's gold in them networks :-)

Regards,
Andreas


Quantcast