logical operators in grep
Hi,
How can I implement logical operators in grep? I checked the man info and couldn't figure it out.
For example, I'd like to display lines in file1.txt that contains word1 OR word2.
cat file1.txt | grep word1 OR word2
Thanks in advance.
|