From owner-freebsd-questions Thu Mar 7 6:23:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from slate.dublin.wbtsystems.com (slate.dublin.wbtsystems.com [193.120.231.12]) by hub.freebsd.org (Postfix) with ESMTP id E6BAA37B400 for ; Thu, 7 Mar 2002 06:23:13 -0800 (PST) Received: from spiral (spiral.dublin.wbtsystems.com [193.120.231.190]) (authenticated bits=0) by slate.dublin.wbtsystems.com (8.12.2/8.12.2) with ESMTP id g27ELSjZ096841; Thu, 7 Mar 2002 14:21:28 GMT From: "Barry Byrne" To: "mpd" , Subject: RE: grep.... recursive searching Date: Thu, 7 Mar 2002 14:21:25 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20020307091002.A45751@rochester.rr.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Scanned-By: MIMEDefang 2.6 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike: I think what you wish to to is use find to located certain files recursively and then grep these files for a specific pattern. If so, try something like: find /START/OF/PATH -name "FINDPATTERN" -exec grep "GREPPATTERN" {} \; Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland > > I'm more curious of a way to make it recurse through all the > directories, but only try to match on certain files. > Is this even possible with this version of grep? The fm (of > rtfm fame) isn't giving me any epiphanies. > > mike > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message