checking ERRors in files

I m having trouble in a script.I need To write a script that will check for Following Errors in Logs Files,i.e files having Extension .log

The erros are

2008-01-01 15:19:11,822 [main] ERROR - ORA-01115: IO error reading block from file 51 (block # 717090)
ORA-01110: data file 51: '/ednpdtu1/u01/oradata/EDNAMIP/indx_l_2_04.dbf'
ORA-27091: skgfqio: unable to queue I/O
ORA-27072: skgfdisp: I/O error

Can U Help me out in this................There are some 80 logs files and I need to check the above error in all those 80 log files

i have the script as :

#!/bin/ksh

if test -f lerr1.txt
then
rm lerr1.txt
fi

for i in file1,file2,file 3........................file 80
do
echo $i >>lerr1.txt
grep "ORA" >> lerr1.txt
done

mail -s "ORA error in log files" naveed@unix.com< lerr1.txt
----------------------------------------------------------------------

is there any way instead of writting 80 files name in for loop i can just give *.log and it will check in all the log files for "ORA" pattern and also send me the file name where this pattern is found.............

for i in *.log
do
    grep ORA "$i" >>lerr1.txt
done

or

grep ORA *.log >>lerr1.txt

i have done this script but its getting stuck in ist file only.can u tell me wats the wrong in it

if test -f lerr1.txt
then
rm lerr1.txt
fi

for i in *.log
do
echo "processing for $i"
echo $i >> lerr1.txt

grep ERROR >> lerr1.txt
echo "Process Finished for $i:"
done

this will work :wink:

if test -f lerr1.txt
then
rm lerr1.txt
fi

for i in *.log
do
echo "processing for $i"
echo $i >> lerr1.txt
grep ERROR $i >> lerr1.txt
echo "Process Finished for $i"
done

lg
wizo_de