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