[ubuntu-florida] Avoid That grep Command in grep Output

LinkinXP <*_*> linkinxp at gmail.com
Wed Sep 15 18:34:08 BST 2010


I just tried it under android and works wonders

On Sep 15, 2010 11:20 AM, "j.e.aneiros" <jesus.aneiros at gmail.com> wrote:

And by the way, something the author didn't tell: In Linux we can avoid the
whole grep filtering with a simple ps -C <command_name>

janeiros at harlie:~$ ps -C bash
  PID TTY          TIME CMD
13235 tty1     00:00:00 bash
17798 pts/0    00:00:00 bash

Of course, the output is a little bit different than the one from ps ax.

On Wed, Sep 15, 2010 at 10:48 AM, Matt Miller <matt.s.miller at gmail.com>
wrote:

>
> This is how I would go about it:
>
> $ pgrep bash | xargs ps -fp
> UID        PID  PPID  C STIME...



-- 

J. E. Aneiros
GNU/Linux User #190716 en http://counter.li.org
perl -e '$_=pack(c5,0105,0107,0123,013...

--
Ubuntu-us-fl mailing list
Ubuntu-us-fl at lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-fl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-us-fl/attachments/20100915/788154b1/attachment-0001.htm 


More information about the Ubuntu-us-fl mailing list