title: to read particular lines from a file after Pattern is found
body: <p>I am quite new to shell programing, so please bear with my ignorance,i want to write a sh script in which i want to do following things</p>
  
  <p>1).Find a pattern in the file &lt; Done ></p>
  
  <p>2).After pattern is found read all the lines ,immediately following pattern, that starts with "at". .</p>
  
  <p>excerpt from my log file</p>
  
  <pre><code>SQLError.dispatchException(SQLError.java:299)
  at blah.blah.blah.blah(blah.java)
  at blah.blah.blah.blah(blah.java)
  at blah.blah.blah.blah(blah.java)
  at blah.blah.blah.blah(blah.java)
  Caused by: java.sql.SQLException
  </code></pre>
  
  <p>here i am able to find pattern <code>SQLError.dispatchException</code> but dont know how to read all the lines that are starting with <code>at</code> and check if <code>Caused by</code> is coming immediately after line begins with <code>at</code>.</p>