[Wolves] Hello...

Adam Sweet drinky76 at yahoo.com
Thu Jun 18 11:12:49 UTC 2009


> From: Andy Smith <andy at strugglers.net>


> On Mon, Jun 15, 2009 at 11:00:53AM +0100, DragonMaster wrote:
> > > adams at selenium:~$ ps ax | grep apache | grep -v grep | awk {'print $1'}

> > As a hint at the power of Awk, the above line can be shortened to be
> >   ps ax | awk '/apache/ {print $1}'
> 
> "pgrep apache" is even shorter :)

Bested twice in a single thread :(

Ad



      



More information about the Wolves mailing list