I faced a strange behavior of a grep command on Solaris 9. For example , I have a host file with two lines:
1.1.1.1 host
1.2.3.4 host-MY
I\'d like to gre
You're probably not calling the good grep
executable.
Run which grep
to know which one you are running.
On my Solaris box, the official grep
is in:
> which grep
/usr/xpg4/bin/grep
The man page on my Solaris box refers to both /usr/bin/grep
and /usr/xpg4/bin/grep
. Only the latest supports these options.