[comp.unix.questions] grep and regular expressions

steinbac@hpl-opus.hpl.hp.com (Guenter Steinbach) (01/16/91)

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