tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bumping ARG_MAX



On Mon, Nov 14, 2011 at 05:39:02PM +0000, David Laight wrote:
 > > pkgsrc has grown to the point where the following happens:
 > > 
 > >    valkyrie% pwd
 > >    /usr/pkgsrc
 > >    valkyrie% grep foo */*/Makefile
 > >    /usr/bin/grep: Argument list too long.
 > >    Exit 1
 > 
 > Use: grep -r --include Makefile foo .
 > But don't forget the '.' - should be the default with -r
 > (or at least an error).

Or use: find . -name Makefile -print | xargs grep foo
Or use: grep foo [a-m]*/*/Makefile; grep foo [n-z]*/*/Makefile

or whatever. That's completely not the point...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index