Erro pattern output : I have a shell script which writes sqlplus errors to a log with the following output. I only want to capture @DB with errors and redirect to output to a error log. any tips? :

@DB_1

ERROR-123

ORA-123

@DB_2

@DB_3

@DB_4

ERROR-2222

ORA-3333

thx.