[HPADM] Grep for multiple patterns in a file

From: Naylor, Jim (Jnaylor@Schnucks.com)
Date: Wed Nov 23 2005 - 15:39:26 EST


Hello All,
I seem to be having a brain block. I need to grep two different patters within a file.

First Pattern = "OSS 064"
Second Pattern = "OSS 75"

Note the spaces after the OSS. I though grep -e pattern1 -e pattern2 filename would work but it doesn't. Any help would be appreciated.

Thanks,
Jim Naylor
Unix/Storage Systems Administrator
Schnuck Markets, Inc.
* Direct (314) 994-4784
))( Cell (314) 691-0186
      Fax (314) 994-4684
* E-Mail jnaylor@schnucks.com

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:50 EDT