Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 1996 17:31:37 -0800
From:      Josh MacDonald <jmacd@CS.Berkeley.EDU>
To:        Warner Losh <imp@village.org>
Cc:        Wolfram Schneider <wosch@cs.tu-berlin.de>, hackers@freebsd.org
Subject:   Re: recursive grep 
Message-ID:  <199601230131.RAA11361@paris.CS.Berkeley.EDU>
In-Reply-To: Your message of "Mon, 22 Jan 1996 16:54:20 MST." <199601222354.QAA01113@rover.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> : I would like add options for recursive searching 
> : (grep -R foo /usr/include). 
> 
> find /usr/local | xargs grep foo
> 
> Why do we need another wart on grep?  Especially when what you may
> want is find /usr/local -name \*f.h | xargs grep foo :-)
> 
> Warner

and why do we need an extra pipe, either?

	find /usr/include -name \*f.h -exec grep foo {} /dev/null \;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601230131.RAA11361>