egrep on the 3b1 is weird!

Guest Account guest at geech.ai.mit.edu
Sat Mar 23 02:54:40 AEST 1991


Since without any kind of quoting or special chars a regular
expression is 1 character:
	egrep 'foo|bar'
matches lines containing fooar and fobar.  That's why you need to use
parentheses.  You have to read the manual page for ed(1) to get the
rest of the story on regular expressions.  To quote the grep man page:
"Egrep accepts regular expressions as in ed(1), except..."

Daniel Guilderson
ryan at cs.umb.edu



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