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

j.e.aneiros jesus.aneiros at gmail.com
Wed Sep 15 18:37:45 BST 2010


And did you find out why grep [b]ash could fail in certain times?

On Wed, Sep 15, 2010 at 1:34 PM, LinkinXP <*_*> <linkinxp at gmail.com> wrote:

> 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
>
>
> --
> 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
>
>


-- 
J. E. Aneiros
GNU/Linux User #190716 en http://counter.li.org
perl -e '$_=pack(c5,0105,0107,0123,0132,(1<<3)+2);y[A-Z][N-ZA-M];print;'
PK fingerprint: 5179 917E 5B34 F073 E11A  AFB3 4CB3 5301 4A80 F674
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-us-fl/attachments/20100915/29cadfeb/attachment.htm 


More information about the Ubuntu-us-fl mailing list