From owner-freebsd-questions@FreeBSD.ORG Thu Aug 12 11:20:19 2010 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 50A37106567A for ; Thu, 12 Aug 2010 11:20:19 +0000 (UTC) (envelope-from rjgonzale@estrads.com.ar) Received: from cpoproxy1-pub.bluehost.com (cpoproxy1-pub.bluehost.com [69.89.21.11]) by mx1.freebsd.org (Postfix) with SMTP id 0086E8FC17 for ; Thu, 12 Aug 2010 11:20:18 +0000 (UTC) Received: (qmail 16902 invoked by uid 0); 12 Aug 2010 11:20:18 -0000 Received: from unknown (HELO box511.bluehost.com) (74.220.219.111) by cpoproxy1.bluehost.com with SMTP; 12 Aug 2010 11:20:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=estrads.com.ar; h=Received:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:X-Identified-User; b=peBaasC+XoZTJyigdMeeHhKskwoFdNhtZ5iFsucUtMXAN5yowC3TBDvTSgay6m7hZ9QDgUuSwb8vUsQj+o+1yr/W3UefaDpCnpMh0rmBoknbQIfcpkRqzktGT04SGcPX; Received: from host83.190-30-196.telecom.net.ar ([190.30.196.83] helo=rjgonzale-laptop) by box511.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1OjVpZ-0004xH-Em; Thu, 12 Aug 2010 05:20:18 -0600 Date: Thu, 12 Aug 2010 08:20:10 -0300 From: Rodrigo Gonzalez To: "Jack L. Stone" Message-ID: <20100812082010.361ff51d@rjgonzale-laptop> In-Reply-To: <3.0.1.32.20100811180022.00ee4250@sage-american.com> References: <3.0.1.32.20100811180022.00ee4250@sage-american.com> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/SKS.U=Ix+U_0JMcN9u4A8Xh"; protocol="application/pgp-signature" X-Identified-User: {32647:box511.bluehost.com:gonosade:estrads.com.ar} {sentby:smtp auth 190.30.196.83 authed with rjgonzale@estrads.com.ar} Cc: freebsd-questions@freebsd.org Subject: Re: Grepping a list of words 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: Thu, 12 Aug 2010 11:20:19 -0000 --Sig_/SKS.U=Ix+U_0JMcN9u4A8Xh Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 11 Aug 2010 18:00:22 -0500 "Jack L. Stone" wrote: > Kindly appreciate help with how to grep (or similar) a list of words > to determine if any of them are in a file rather than grepping one > word at a time. >=20 Use egrep egrep "(word1|word2)" --Sig_/SKS.U=Ix+U_0JMcN9u4A8Xh Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkxj2OoACgkQZHmnrc0PV8+zqgCgpRjqdHAjR3jL+PBrij0TonUt gAMAoIiJ/Kx+L+X6embm8ivGykxjxN+P =7S1z -----END PGP SIGNATURE----- --Sig_/SKS.U=Ix+U_0JMcN9u4A8Xh--