From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 20:38:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26BDC1065676 for ; Sun, 8 Jun 2008 20:38:16 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from mail.stovebolt.com (mail.stovebolt.com [66.221.101.249]) by mx1.freebsd.org (Postfix) with ESMTP id F23868FC0C for ; Sun, 8 Jun 2008 20:38:15 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from [192.168.2.102] (cpe-24-175-90-48.tx.res.rr.com [24.175.90.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.stovebolt.com (Postfix) with ESMTPSA id B7A4311438F for ; Sun, 8 Jun 2008 15:18:56 -0500 (CDT) Date: Sun, 08 Jun 2008 15:19:00 -0500 From: Paul Schmehl To: freebsd-questions@freebsd.org Message-ID: In-Reply-To: <20080608201256.GA28987@ayn.mi.celestial.com> References: <484C3CC4.7050107@webrz.net> <20080608201256.GA28987@ayn.mi.celestial.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) X-Munged-Reply-To: To reply - figure it out MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========736AC78838BAB6BF9972==========" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Grep Guru X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 20:38:16 -0000 --==========736AC78838BAB6BF9972========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On June 8, 2008 1:12:56 PM -0700 Bill Campbell =20 wrote: > On Sun, Jun 08, 2008, Jos Chrispijn wrote: >> I tried to make a grep script on find a string in all files on path ./ >> and down. It does anything exept searching in files and reporting them. >> Is there a Grep Guru who can hint me out? Thanks, > > I expect you need something like: > > find . -type f -print0 | xargs -0 grep pattern > Or just grep -r string path Paul Schmehl If it isn't already obvious, my opinions are my own and not those of my employer. --==========736AC78838BAB6BF9972==========--