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.

-- 
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Absurdity, n. A statement or belief manifestly inconsistent with
one's own opinion.
    -- Ambrose Bierce, "The Devil's Dictionary"

Attachment: signature.asc
Description: PGP signature

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to