From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 20:26:58 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 6EB481065679 for ; Sun, 8 Jun 2008 20:26:58 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D81E88FC14 for ; Sun, 8 Jun 2008 20:26:57 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m58KQj1c013574; Sun, 8 Jun 2008 21:26:52 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.5.5 smtp.infracaninophile.co.uk m58KQj1c013574 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1212956812; bh=S6cO95VgmU34B1 NUqkBc/TyZXrvkvWkA7jepxuth6U8=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<484C4076.3040804@infracaninophile.co.uk>|Date:=20Sun,=2 008=20Jun=202008=2021:26:30=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.14=20(X11/20080607)|MIME-Version:=201 .0|To:=20Simon=20Jolle=20sjolle=20|CC:=20free bsd-questions@freebsd.org|Subject:=20Re:=20Grep=20Guru|References:= 20<484C3CC4.7050107@webrz.net>=09<20080608201256.GA28987@ayn.mi.cel estial.com>=20<484C3FB7.4080208@gmail.com>|In-Reply-To:=20<484C3FB7 .4080208@gmail.com>|X-Enigmail-Version:=200.95.6|Content-Type:=20mu ltipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"appl ication/pgp-signature"=3B=0D=0A=20boundary=3D"------------enig2279F 8F9ECFE6F32EB2E7DA1"; b=iyYomPwd+4+D9bqufLmkzoeKONrYXwp4nwkiOtC8vue jBrJA4BZRJbTQK3brtqFZpUCCU1QbTNSDpFjEQOnfrL89+HpENb+XUIMGrNYZMG/hX1 bgzAbpEU0GkWq3tl2XSg99Q+mSj9lnsMYUNCGidVsDEExJuEJX0UGph9+16ug= Message-ID: <484C4076.3040804@infracaninophile.co.uk> Date: Sun, 08 Jun 2008 21:26:30 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.14 (X11/20080607) MIME-Version: 1.0 To: Simon Jolle sjolle References: <484C3CC4.7050107@webrz.net> <20080608201256.GA28987@ayn.mi.celestial.com> <484C3FB7.4080208@gmail.com> In-Reply-To: <484C3FB7.4080208@gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig2279F8F9ECFE6F32EB2E7DA1" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 08 Jun 2008 21:26:52 +0100 (BST) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Grep Guru X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 20:26:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2279F8F9ECFE6F32EB2E7DA1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Simon Jolle sjolle wrote: > 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 the= m. >>> 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 >=20 > Or install the GNU grep (from the man) >=20 > -R, -r, --recursive > Read all files under each directory, recursively; this is > equivalent to the -d recurse option. The system supplied grep(1) /is/ gnu grep: happy-idiot-talk:~:% grep --version=20 grep (GNU grep) 2.5.1-FreeBSD Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO= warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS= E. grep -r works just fine. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig2279F8F9ECFE6F32EB2E7DA1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkhMQIUACgkQ8Mjk52CukIz8gwCfdKxOe8/kJ5Ou+krQ3fNQtN8P QIcAn2ySZKQl7yKbrkUOH24UPoM+BEdw =3sGY -----END PGP SIGNATURE----- --------------enig2279F8F9ECFE6F32EB2E7DA1--