linux - grep exclude multiple strings
I am trying to see a log file using tail -f and want to exclude all lines containing the following strings:

Filtering out multiple lines with grep:
Put these lines in filename.txt to test:
abc
def
ghi
jkl

grep command using -E flag with a pipe between tokens in a string:
grep -Ev 'def|jkl' filename.txt

prints:
abc
ghi

egrep using -v flag with pipe between tokens surrounded by parens:
egrep -v '(def|jkl)' filename.txt

prints:
abc
ghi

Or if stacking -e flags through grep parameters is okay (credit -> @Frizlab):
grep -Fv -e def -e jkl filename.txt

prints:
abc
ghi

