From owner-freebsd-hackers Mon Jan 22 17:32:36 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA11068 for hackers-outgoing; Mon, 22 Jan 1996 17:32:36 -0800 (PST) Received: from paris.CS.Berkeley.EDU (paris.CS.Berkeley.EDU [128.32.34.47]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA11058 for ; Mon, 22 Jan 1996 17:32:30 -0800 (PST) Received: from paris.CS.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by paris.CS.Berkeley.EDU (8.6.11/8.6.9) with ESMTP id RAA11361; Mon, 22 Jan 1996 17:31:39 -0800 From: Josh MacDonald Message-Id: <199601230131.RAA11361@paris.CS.Berkeley.EDU> To: Warner Losh cc: Wolfram Schneider , hackers@freebsd.org Subject: Re: recursive grep In-reply-to: Your message of "Mon, 22 Jan 1996 16:54:20 MST." <199601222354.QAA01113@rover.village.org> Date: Mon, 22 Jan 1996 17:31:37 -0800 Sender: owner-hackers@freebsd.org Precedence: bulk > : 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 \;