From owner-freebsd-questions Mon Jul 3 11:58: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fac13.ds.psu.edu (fac13.ds.psu.edu [146.186.61.98]) by hub.freebsd.org (Postfix) with ESMTP id 7513837BC52 for ; Mon, 3 Jul 2000 11:57:56 -0700 (PDT) (envelope-from hawk@fac13.ds.psu.edu) Received: from fac13.ds.psu.edu (localhost [127.0.0.1]) by fac13.ds.psu.edu (8.9.3/8.9.3) with ESMTP id OAA48974; Mon, 3 Jul 2000 14:57:00 -0400 (EDT) (envelope-from hawk@fac13.ds.psu.edu) Message-Id: <200007031857.OAA48974@fac13.ds.psu.edu> X-Mailer: exmh version 2.1.1 10/15/1999 To: Harry Woodward-Clarke Cc: keith@mail.telestream.com, freebsd-questions@FreeBSD.ORG Subject: Re: grep In-Reply-To: Your message of "Mon, 03 Jul 2000 12:07:53 +1000." <395FF579.5E006CDE@S1.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 03 Jul 2000 14:57:00 -0400 From: "Richard E. Hawkins" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Possibly a very stupid question here so be kind. :-) > hmmmm... ok, just this once ;') > > Is it possible to grep for multiple items within one grep statement > yup. > where '-e PATTERN' can be repeated a number of times :') also, you can use grep -f filename where filename has a list of matches. man grep would also be a useful thing to do. So is man ed which has plenty of useful information on regexps To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message