grep -e doesn't work on solaris

grep -e doesn't work in Soalris.

Same script with grep -e worked on AIX/HP/LINUX..

I would like to search a list of patterns on "log.txt" like ...
grep -e FATAL -e ERROR log.txt

I get the error message as
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .

Found the problem myself :-)...

The following options are supported for /usr/xpg4/bin/grep only
-e -E -f -F -q -x.
These options doesn't work with /usr/bin/grep

The use of multiple -e options has always been something of an undocumented feature anyway. To use only standard, documented, portable facilities, you might want to egrep 'FAILURE|ERROR' or some rough equivalent of { echo FAILURE; echo ERROR } | fgrep -f - (and actually I guess the latter won't work on some crude platforms either; specifying standard input with a dash as the argument to the -f option isn't really portable, either, IIRC).

check this out as well