From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 20:23:26 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 962C61065676 for ; Sun, 8 Jun 2008 20:23:26 +0000 (UTC) (envelope-from urandomdev@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 1758E8FC16 for ; Sun, 8 Jun 2008 20:23:25 +0000 (UTC) (envelope-from urandomdev@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1532598fgb.35 for ; Sun, 08 Jun 2008 13:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=Pb2zPYBeh4bzUzl4dk4jR6dLw0I3Akplx/aq5zFrWYs=; b=cKsUJVJx1+oaOEwLOwkMjpNMoOU2ytDuVqPEkR7thIFfKf8/hEvcpuXkRdKfkfWEIW /UsHxYninIV6n4rQLW8KXZH8BreoYspLz28t4gZ0WhtsVHtTLb55JajqUiKJNMR3brjl 3sWh9G8OUsvtMJjA8GuRgCAzTkynKHc253FiY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=x+Y9XhEzoy0eo3MnPR/RLZe8vWC0RTg8mNLDvy/avyCzCjnZ7i7qEnb/5bRPNPftFz tMNvzAswPEpWxpS5KBLnr5nAAcLJ2daU4sQbjEdtr+wFGCI2A1606INKdW1DeR3sarzO 13U1uQFGDBN+6dLfgnIqCd4FNc1brKV7hK5Ws= Received: by 10.86.99.9 with SMTP id w9mr3329781fgb.70.1212956604989; Sun, 08 Jun 2008 13:23:24 -0700 (PDT) Received: from ?192.168.111.114? ( [84.75.166.248]) by mx.google.com with ESMTPS id 3sm10514914fge.3.2008.06.08.13.23.23 (version=SSLv3 cipher=RC4-MD5); Sun, 08 Jun 2008 13:23:24 -0700 (PDT) Message-ID: <484C3FB7.4080208@gmail.com> Date: Sun, 08 Jun 2008 22:23:19 +0200 From: Simon Jolle sjolle User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <484C3CC4.7050107@webrz.net> <20080608201256.GA28987@ayn.mi.celestial.com> In-Reply-To: <20080608201256.GA28987@ayn.mi.celestial.com> X-Enigmail-Version: 0.95.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF6BF07FD332E182CA1403C88" 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:23:26 -0000 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--