Date: Thu, 12 Aug 2010 08:20:10 -0300 From: Rodrigo Gonzalez <rjgonzale@estrads.com.ar> To: "Jack L. Stone" <jacks@sage-american.com> Cc: freebsd-questions@freebsd.org Subject: Re: Grepping a list of words 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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" <jacks@sage-american.com> 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)" <file> --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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100812082010.361ff51d>