On Fri, Jan 12, 2001 at 06:43:31PM -0200, Octavian Popescu wrote:
> 
> hideout:~# ps auwx | grep pine
> sigquit   1379  0.6  1.9  5036 2476 tty1     S    18:41   0:00 pine
> root      1386  0.1  1.1  4472 1476 tty3     S    18:41   0:00 pine
> root      1395  0.0  0.3  1164  420 tty2     S    18:42   0:00 grep pine
> hideout:~# pidof pine
> 1386 1379
> hideout:~# ps auwx | grep pine | grep -v grep | awk '{print $2}'

well, ok, mie mi-a scapat asta. mai elegant (dar mai neclar) este insa
                       grep [p]ine
in loc sa folosesti doua grep-uri                                          

in plus, varianta 
        awk /[p]ine/ '{print $2}'
evita grep complet

-- 
        ___
       <o-o>    Viorel ANGHEL <vang AT altavista DOT net>
       [`-']    
       -"-"-    In Linux We Trust.

---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui