grep and regular expressions

Guenter Steinbach steinbac at hpl-opus.hpl.hp.com
Wed Jan 16 06:35:42 AEST 1991


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 at hplabs.hp.com



More information about the Comp.unix.questions mailing list