Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jul 2000 00:50:35 -0400 (EDT)
From:      James Howard <howardjp@glue.umd.edu>
To:        keith@mail.telestream.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: grep
Message-ID:  <Pine.GSO.4.21.0007030050060.27414-100000@y.glue.umd.edu>
In-Reply-To: <Pine.LNX.4.10.10007021822110.23434-100000@mail.telestream.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2 Jul 2000 keith@mail.telestream.com wrote:

> Possibly a very stupid question here so be kind. :-) 
> Is it possible to grep for multiple items within one grep statement

Yeah, use -e like this:

	grep -e item1 -e item2 -e item3

and so forth.  

J~



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0007030050060.27414-100000>