[lug] Limits of grep?

Hugh Brown hugh at math.byu.edu
Tue Sep 26 07:49:55 MDT 2000


This is a limitation of the shell most likely (on the order of 256
characters, I think).

I use 
   find . -type f -exec grep "search pattern" {} \;

Hugh


Subba Rao wrote:
> 
> Hi
> 
> I have a directory of 10000+ text files and would like to search for
> some strings in these files. When I tried using "grep" command with an
> asterisk, I get the error message somthing to the effect,
> 
>         "File argument list too long"
> 
> What is the file argument limit for grep? I guess you need the grep source
> for this. I did not find any information in the man page.




More information about the LUG mailing list