Thread: grep command
View Single Post
  #2  
Old 2nd August 2012, 13:20
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Code:
egrep '(string1|string2)' <somefile>
This will search for lines with "string1" and "string2" in a file.
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote