Using "OR" type matching pattern with grep command
I have a big text file and i want to grep only those lines who either have "word1" or "word2" or "word3".
How can i do it in a single command?
Currently i am doing this as 3 separate commands:
cat filename | grep word1
Cat filename | grep word2
Cat filename | grep word3