title: removing unmatched lines with SED
body: <p>I'm trying to remove everything but 3 separate lines with specific matching pattern and leave just the 3 lines I want</p>
  
  <p>Here is my code;</p>
  
  <pre><code>sed -n '/matching pattern/matching pattern/matching pattern/p' &gt; file.txt
  </code></pre>