How can a condition in a script look for "case sensitive" words ?
Posted on 2011-02-14
I have this condition in order to send me a log if it encounters any of this word. The thing is I need this "case sensitive', because the log has a filename with the word "Rejected" in it and send me the log as it where an error.
PARAM1=$(egrep -i -c "ORA-|rejected|Killed|skipped|EXP-" "$log")