[Gllug] Flavours end - Linux begins?

Nix nix at esperi.demon.co.uk
Sat Nov 23 16:58:34 UTC 2002


On Tue, 19 Nov 2002, Dave Cridland mused:
> On Tue, 19 Nov 2002 09:08:32 +1300
> Jonathan Harker <jharker at massey.ac.nz> wrote:
> 
>> On Tuesday 19 Nov 2002 1:12 am, Dave Cridland [Home] wrote:
>> > Like ps being sortable, and the existence of pkill and pgrep. Those
>> > three have saved me a huge amount of typing.
>> 
>> WOW! Thanks for the tip on pgrep, I just KNEW there should be a tool for
>>    ps -ef | grep processname | awk '{ print $2 }'
>> and 
>>    kill `ps -ef | grep processname | awk '{ print $2 }'`
>> 
>> I had these as little bash scripts...
> 
> Needs to be [p]rocessname anyway, otherwise the regexp matches itself.

And the `ps -ef | grep '[p]rocessname'' is better done by
`ps -fC processname' on Linux boxes, these days.

(Alas, -C is not standardized. :( )

-- 
`I keep hearing about SF writers dying, but I never hear about SF
 writers being born.  So I guess eventually there'll be none left.'
                                    -- Keith F. Lynch


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list