Can anyone please help here. If not feasible with egrep, other suggestions too would be highly appreciated.
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".
ORA-12012: error on auto execute of job "SYS"."UTL_RECOMP_SLAVE_75"
ORA-00942: <<<<<<<<<<<<<<<<<< should be grepped along with "UTL_RECOMP_SLAVE_75"
ORA-00490: error text is xyz
ORA-00942: <<<<<<<<<<<<<<<< this should be ignored