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 [email protected]
