Korn Shell Script to find out error in logfile

Hi All, I am new to this forum as well as to unix scripting.

Can you please help me to create a korn shell script to find out errors in logfiles and get the name of that logfile ( which is having error) in email and email it to me?

If you have a specific question we can help but we can't do your work for you. If you're new to UNIX scripting first read some books or one of these tutorials:

http://www.unix.com/answers-frequently-asked-questions/13774-unix-tutorials-programming-tutorials-shell-scripting-tutorials.html

Regards

I know scripting and I can understand scripting. But I am not getting an idea to start the script.

So just give me an example.