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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF6BF07FD332E182CA1403C88 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 ./= =20 >> and down. It does anything exept searching in files and reporting them= =2E >> Is there a Grep Guru who can hint me out? Thanks, >=20 > I expect you need something like: >=20 > 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 --------------enigF6BF07FD332E182CA1403C88 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFITD+3EMN/lNE/wrwRAlLuAJ4phQWJXI/qioR3AdfwKQSIwA1xjwCeIk6/ 6Becq3RjtPx7z4vh3TDtmEI= =M3HT -----END PGP SIGNATURE----- --------------enigF6BF07FD332E182CA1403C88--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?484C3FB7.4080208>