Why do brackets in a grep pattern remove the grep process from ps results?
$ ps -ef | grep XXXX
[...] XXXX
[...] grep XXXX
$ ps -ef | grep [X]XXX
[...] XXXX
|
Why do brackets in a
|
|||||||
|
|
When you run But, when you run |
|||||||
|
|
Because the brackets need to be escaped, for bash once and for grep again:
|
|||
|
|