title: How to print 5 consecutive lines after a pattern in file using awk
body: <p>I would like to search for a pattern in a file and prints 5 lines after finding that pattern.</p>
  
  <p>I need to use <code>awk</code> in order to do this.</p>
  
  <p>Example: </p>
  
  <p>File Contents:</p>
  
  <pre class="lang-none prettyprint-override"><code>.
  .
  .
  .
  ####PATTERN#######
  #Line1
  #Line2
  #Line3
  #Line4
  #Line5
  .
  .
  .
  </code></pre>
  
  <p>How do I parse through a file and print only the above mentioned lines?
  Do I use the NR of the line  which contains "PATTERN" and keep incrementing upto 5 and print each line in the process.
  Kindly do let me know if there is any other efficient wat to do it in Awk.</p>