In a unix shell script(say do.ksh), I want to read a file called load_errors.log and count the word ORA- for the number of occurances.
If the occurance is more than 50, then I would like the unix shell script to exit with a message "ORA- found more than 50 times"
How can this be done ? Thanks