I'm trying to use grep with -v for invert-match along with -e for regular expression. I'm having trouble getting the syntax right.
I'm trying something like
tail -f logFile | grep -ve "string one|string two"
If I do it this way it doesn't filter If I change it to
tail -f logFile | grep -ev "string one|string two"
I get
grep: string one|string two: No such file or directory
I have tried using () or quotes, but haven't been able to find anything that works.
How can I do this?