Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!ucbvax!hplabs!hpl-opus!steinbac From: steinbac@hpl-opus.hpl.hp.com (Guenter Steinbach) Newsgroups: comp.unix.questions Subject: Re: grep and regular expressions Message-ID: <63720027@hpl-opus.hpl.hp.com> Date: 15 Jan 91 19:35:42 GMT References: <1991Jan14.182424.25176@eagle.lerc.nasa.gov> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 8 On my HP9000/375, running ksh under HP-UX 7.0, I type egrep 'abc|xyz' file to catch all lines in "file" that contain either "abc" or "xyz". The secret is to use egrep ("extended grep"), it does not work with grep. Guenter Steinbach gunter_steinbach@hplabs.hp.com