[TAG] Searching for multiple strings/patterns with 'grep'
Amit k. Saha
amitsaha.in at gmail.com
Mon Jun 23 10:22:44 MSD 2008
Hello TAG,
I have a text file from which I want to list only those lines which
contain either pattern1 or patern2 or both.
How to do this with 'gre'p?
Assume, file is 'patch', and 'string1' and 'string2' are the two patterns.
The strings for me are: 'ha_example' and 'handler'- so I cannot
possibly write a regex for that.
Thanks,
Amit
--
Amit Kumar Saha
http://blogs.sun.com/amitsaha/
http://amitksaha.blogspot.com
More information about the TAG
mailing list