How do I Invert search using grep for multiple strings of text

Viewed 19956

I am trying filter out couple of blocks of text that keep repeating over and over in my log file. For eg;

grep -v ("string one that I don't want" \| "string two that I don't want") file.log

I tried several variations of this and tried tweaking the white spaces . Sometimes it will filter out the first string sometimes neither. What will be the correct format to filter out more than one block of text using grep ?

1 Answers
Related