title: Negative matching using grep (match lines that do not contain foo)
body: <p>How do I match all lines not matching a particular pattern using <code>grep</code>? I tried this:</p>
  <pre><code>grep '[^foo]'
  </code></pre>