Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!twg.com!david From: david@twg.com (David S. Herron) Newsgroups: comp.sys.3b1 Subject: Re: egrep on the 3b1 is weird! Keywords: egrep unix-pc 3b1 Message-ID: <8783@gollum.twg.com> Date: 21 Mar 91 01:59:12 GMT References: <1268@hico2.UUCP> Organization: The Wollongong Group, Palo Alto, CA Lines: 21 In article <1268@hico2.UUCP> kak@hico2.UUCP (Kris A. Kugel) writes: >Am I confused, or does egrep on the 3b1 >handle multiple regular expressions incorrectly? > > egrep 'foo|bar' > >seems to match '[fb][oa][or]' patterns, >instead of what I wanted (matching lines with "foo" or "bar") Try egrep '(foo)|(bar)' And read the F'ing manual a little more closely next time ... -- <- David Herron, an MMDF & WIN/MHS guy, <- Formerly: David Herron -- NonResident E-Mail Hack <- <- "MS-DOS? Where we're going we don't need MS-DOS." --Back To The Future