From owner-freebsd-questions Sun Jul 2 21:50:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from po4.glue.umd.edu (po4.glue.umd.edu [128.8.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 5E33A37BF4C for ; Sun, 2 Jul 2000 21:50:44 -0700 (PDT) (envelope-from howardjp@glue.umd.edu) Received: from y.glue.umd.edu (root@y.glue.umd.edu [128.8.10.68]) by po4.glue.umd.edu (8.10.1/8.10.1) with ESMTP id e634oaE07326; Mon, 3 Jul 2000 00:50:40 -0400 (EDT) Received: from y.glue.umd.edu (sendmail@localhost [127.0.0.1]) by y.glue.umd.edu (8.9.3/8.9.3) with SMTP id AAA27426; Mon, 3 Jul 2000 00:50:36 -0400 (EDT) Received: from localhost (howardjp@localhost) by y.glue.umd.edu (8.9.3/8.9.3) with ESMTP id AAA27421; Mon, 3 Jul 2000 00:50:35 -0400 (EDT) X-Authentication-Warning: y.glue.umd.edu: howardjp owned process doing -bs Date: Mon, 3 Jul 2000 00:50:35 -0400 (EDT) From: James Howard To: keith@mail.telestream.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: grep In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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