The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-25-2006
kingdbag kingdbag is offline
Registered User
 

Join Date: Jun 2006
Location: Las Vegas, NV
Posts: 104
Grep'n more than one string

If I want to grep more than 1 string in a bunch of files and I don't want it to be case sensitive how would I do that? This simple thing is freaking me out haha

example:
grep -i rgb cmts hosts.*

rgb and cmts are the two strings im looking for I can't seem to get it to look for both....UGH
Reply With Quote
Forum Sponsor