[clue-tech] Too many words from ``

grant at amadensor.com grant at amadensor.com
Tue Jul 18 21:28:14 MDT 2000


Lynn Danielson wrote:
> 
> matthew.w.mcillece at lmco.com wrote:
> >
> > I occasionally need to search for every occurrence of a string in many (if
> > not all) the files in a directory tree.  I can usually just do a
> >
> > grep -ns string `find /path/to/tree -name "*" -print` | more
> >
> > to get each line that the string occurs on, with the filename and line
> > number and no complaints about files that can't be accessed.
> >
> > However, sometimes I get the, "Too many words from ``" message and no other
> > output.  I assume this message is generated by grep in response to a list of
> > files that is bigger than it can handle.  Does anyone have a workaround for
> > when this occurs?  Is there a way to make grep work with a bigger list of
> > files?
> 
grep also has a recursive option to avoid that find junk completely:


grep -nsr string /path/*|less      (I like less better than more)



More information about the clue-tech mailing list