title: bash grep newline
body: <p>[<strong>Editorial insertion</strong>: Possible duplicate of the same poster's <a href="https://stackoverflow.com/questions/1083601/reading-a-subset-of-the-lines-in-a-text-file-with-bash">earlier question</a>?]</p>
  
  <p>Hi, I need to extract from the file:</p>
  
  <pre><code>first
  second
  third
  </code></pre>
  
  <p>using the grep command, the following line:</p>
  
  <pre><code>second
  third
  </code></pre>
  
  <p>How should the grep command look like?</p>