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

You can use -e option multiple times in grep to skip multiple search items:

grep -v -e "string one that I don't want" -e "string two that I don't want" file.log

OR else use regex using grep -E for extended regex support:

grep -vE 'string one|string two' file.log

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)