How to search for multiple strings in a file
Posted
by topwoman
on Stack Overflow
See other posts from Stack Overflow
or by topwoman
Published on 2010-04-06T11:36:24Z
Indexed on
2010/04/06
12:13 UTC
Read the original article
Hit count: 157
I want to search for the occurrence of string1 OR string2 OR string3, etc. in a file, and print only those lines (to stdout or a file, either one). How can I easily do this in bash?
© Stack Overflow or respective owner