Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jun 2008 15:19:00 -0500
From:      Paul Schmehl <pschmehl_lists@tx.rr.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Grep Guru
Message-ID:  <BCC8EF5365F63A934AC4251D@Macintosh.local>
In-Reply-To: <20080608201256.GA28987@ayn.mi.celestial.com>
References:  <484C3CC4.7050107@webrz.net> <20080608201256.GA28987@ayn.mi.celestial.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--==========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 <freebsd@celestial.com>=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==========--




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