grep -V

The -V option is used to search for non-matching ones.

[vagrant@localhost ses]$ grep gmail sendmail.cgi
$to = ‘hoge@gmail.org’;
[vagrant@localhost ses]$ grep -v print sendmail.cgi

なるほど、一致しないものね。使い勝手がいいですね。