egrep on the 3b1 is weird!

David S. Herron david at
Thu Mar 21 11:59:12 AEST 1991

In article <1268 at hico2.UUCP> kak at 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")


	egrep '(foo)|(bar)'

And read the F'ing manual a little more closely next time ...

<- David Herron, an MMDF & WIN/MHS guy, <david at>
<- Formerly: David Herron -- NonResident E-Mail Hack <david at>
<- "MS-DOS? Where we're going we don't need MS-DOS." --Back To The Future

More information about the Comp.sys.3b1 mailing list