string pattern

How do I search multiple strings or words using the grep command? For example I’d like to search word1, word2, word3 and so on within /path/to/file. How do I force grep to search multiple words?

{ 85 comments }

grep in Bash

by on February 15, 2007 · 0 comments

How do I use grep command in Bash?

{ 0 comments }