Thread: grep command
View Single Post
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

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