# ps -ef | grep gre
root 15067 63614 0 11:03 pts/0 00:00:00 grep --color=auto gre
Another example
# ps -ef | grep sshd
root 1186 1 0 Jul26 ? 00:00:00 /usr/sbin/sshd -D
root 15439 63614 0 11:05 pts/0 00:00:00 grep --color=auto sshd
How can I stop the grep command being found by itself and not returned as a field?