title: how to show the third line of multiple files
body: <p>I have a simple question. I am trying to check the 3rd line of multiple files in a folder, so I used this:</p>
  
  <pre><code>head -n 3 MiseqData/result2012/12* | tail -n 1
  </code></pre>
  
  <p>but this doesn't work obviously, because it only shows the third line of the last file. But I actually want to have last line of every file in the result2012 folder. </p>
  
  <p>Does anyone know how to do that?</p>
  
  <p>Also sorry just another questions,  is it also possible to show which file the particular third line belongs to?</p>
  
  <p>like before the third line is shown, is it also possible to show the filename of each of the third line extracted from?</p>
  
  <p>because if I used head or tail command, the filename is also shown. </p>
  
  <p>thank you</p>