head behaviour

Dominic Fandrey kamikaze at bsdforen.de
Sun Jun 6 01:56:31 UTC 2010


On 05/06/2010 23:37, Bakul Shah wrote:
> On Sat, 05 Jun 2010 14:02:16 PDT Doug Barton <dougb at 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? 


More information about the freebsd-hackers mailing list