title: egrep in shell scripting
body: <p>Can anyone please help here. If not feasible with egrep, other suggestions too would be highly appreciated.</p>
  
  <p>I am trying to write an egrep expression to grep ORA-00942 with "UTL_RECOMP_SLAVE_75", when it is in the next line of "UTL_RECOMP_SLAVE_75" string. However ORA-00942 in any other line in the file should be ignored. ORA-00942 has to be grepped only when its in the next line followed by "UTL_RECOMP_SLAVE_75".</p>
  
  <pre><code>ORA-12012: error on auto execute of job "SYS"."UTL_RECOMP_SLAVE_75"
  ORA-00942:     &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; should be grepped along with "UTL_RECOMP_SLAVE_75"
  
  ORA-00490: error text is xyz
  ORA-00942:   &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; this should be ignored
  </code></pre>