Joe Zeff wrote:
On 11/11/2018 02:28 AM, Ed Greshko wrote:
[egreshko@meimei ~]$ ps -eaf | grep geoclue egreshko 1691 1 0 Nov10 ? 00:00:00 /usr/libexec/geoclue-2.0/demos/agent egreshko 5684 2503 0 17:25 pts/3 00:00:00 grep --color=auto geoclue
Try adding | grep -v grep to the end of that to get rid of the extra line.
An alternative which doesn't require the extra pipe and grep is to add brackets to the initial grep:
ps -eaf | grep [g]eoclue
But for this particular case, I generally use pgrep instead of ps | grep.