Hello, On Mon, 23 Jun 2008, Amit k. Saha wrote: > I have a text file from which I want to list only those lines which > contain either pattern1 or patern2 or both. grep -e '(pattern1)|(pattern2)' or grep '\(pattern1\)\|\(pattern2\)' Regards, Kapil. --