How to exclude one word with grep

Check Date

Works on 2019-03-11 11:45:51+0800

Question

How to exclude one word with grep command ?

Answer

use flag -v

cat some-file | grep -v 'some-word' > result.txt

Reference

Published 11 Mar 2019

Bring the answer to lost vistor
MagicRabbit on Twitter