Gavrie Philipson wrote:
> 
> 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"
> >
> 
> Besides Shachar's answer about using 'find', you could also use the
> 'xargs' command. In this case, 'ls | xargs grep <pattern>' should do the
> trick.

And it would also do what was originally intended. Using 'find' will go
recursively into subdirectories. If one was able to use grep *, no recursion
would be performed.

Herouth

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to