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
You need to escape the pipe symbol when -e is used:
tail -f logFile | grep -ve "string one\|string two"
EDIT: or, as @Adam pointed out, you can use the -E flag:
tail -f logFile | grep -vE "string one|string two"