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.............