Help with Shell Script

view story

http://www.unix.com – Hello Guys, I want to write a shell script which monitors SystemOut.log file which goes on update. This script must check the log file continuously and if any error with ORA- appears it must send the error and next 10 lines to an email, and if any new ORA- error comes again it must do the same. Any one can help me? TIA (HowTos)