Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!att!cbfsb!cbnewsc!guy From: guy@cbnewsc.att.com (guy.r.berentsen) Newsgroups: comp.sys.3b1 Subject: Re: egrep on the 3b1 is weird! Summary: Works on my UPC at work (3.5) Message-ID: <1991Mar22.212625.5349@cbnewsc.att.com> Date: 22 Mar 91 21:26:25 GMT References: <1268@hico2.UUCP> <8783@gollum.twg.com> <1311@hico2.UUCP> <48545@rphroy.UUCP> Distribution: na Organization: AT&T Bell Laboratories Lines: 10 > |> egrep 'foo|bar' > |> matches lines containing fooar and fobar. That's why you need to use > > egrep 'foo|bar' will match either foo or bar, not fobar nor fooar. > On my unix pc at work (running 3.5) egrep 'foo|bar' matches foo or bar (of course it also matches "fobar" and "fooar" since the later contains the string "foo" and the former contains the string "bar")