Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jun 2008 22:23:19 +0200
From:      Simon Jolle sjolle <urandomdev@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Grep Guru
Message-ID:  <484C3FB7.4080208@gmail.com>
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

[-- Attachment #1 --]
On 06/08/2008 10:12 PM, Bill Campbell 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 install the GNU grep (from the man)

-R, -r, --recursive
Read all  files  under  each  directory,  recursively;  this  is
equivalent to the -d recurse option.

> Bill

cheers
Simon



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFITD+3EMN/lNE/wrwRAlLuAJ4phQWJXI/qioR3AdfwKQSIwA1xjwCeIk6/
6Becq3RjtPx7z4vh3TDtmEI=
=M3HT
-----END PGP SIGNATURE-----

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