title: GREP: How to search for a value but at the same time exclude some matches
body: <p>I need a way to simplify this command:</p>
  
  <pre><code>grep 'SEARCHTERM' server.log | grep -v 'PHHIABFFH' | grep -v 'Stats'
  </code></pre>
  
  <p>It should find all the lines including <code>SEARCHTERM</code>  but exclude if one of the <code>SEARCHTERM</code> lines includes <code>PHHIABFFH</code> or <code>Stats</code>.</p>