Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Jun 2010 03:56:29 +0200
From:      Dominic Fandrey <kamikaze@bsdforen.de>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        freebsd-hackers@freebsd.org, Doug Barton <dougb@FreeBSD.org>
Subject:   Re: head behaviour
Message-ID:  <4C0B004D.9090706@bsdforen.de>
In-Reply-To: <20100605213731.816035B30@mail.bitblocks.com>
References:  <20100605201242.C79345B52@mail.bitblocks.com>	<4C0AB448.2040104@FreeBSD.org>	<20100605204845.6E56B5B52@mail.bitblocks.com>	<4C0ABB58.6030009@FreeBSD.org> <20100605213731.816035B30@mail.bitblocks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/06/2010 23:37, Bakul Shah wrote:
> On Sat, 05 Jun 2010 14:02:16 PDT Doug Barton <dougb@FreeBSD.org>  wrote:
> It would be less surprising and more useful if
> 
>     $ ps | (head -1; grep ssh)
> 
> showed
> 
>     PID  TT  STAT      TIME COMMAND
>     <all line with ssh in it>
> 
> The change in head behaviour I am suggesting wouldn't break
> anything that already works but make it more useful for what
> you call 'wacky commands lines'!

I know this is besides the point you want to make, but I just
cannot resist:
# ps x | sed -e 1P -e '/ssh/\!d'

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C0B004D.9090706>