🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #165

Re: Sort problem . .

#165
From: Tom Christiansen
Date: Mon, 27 Jul 1992 14:01
16 lines
1370 bytes
From the keyboard of peer@ccrma.stanford.edu (Peer Landa):
: 
:I'm trying to list & sort all my processes by memory use:
:alias  pss  ' ps uax | sort -nr +3'
:It works fine except for that the "title line" also gets sorted and therefore  
:appears at the bottom . . any idea to avoid this ?

ps axu | ( sed 1q ; sort -nr +3 ) 

--tom

-- 
    Tom Christiansen      tchrist@convex.com      convex!tchrist
    If you have ever seen the grim word "login:" on a screen, your mind
    is now a wholly-owned subsidiary of The Death Star.
                John Woods in <14105@ksr.com> of comp.unix.bsd
Technical Details
Message-ID: <1992Jul27.140110.846@news.eng.convex.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!darwin.sura.net!convex!convex!tchrist
References: <1992Jul27.123415.977@leland.Stanford.EDU>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell
Path: arc1-ca.pugleaf.net!sparky!uunet!darwin.sura.net!convex!convex!tchrist
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: Sort problem . .
Message-ID: <1992Jul27.140110.846@news.eng.convex.com>
Originator: tchrist@pixel.convex.com
Sender: usenet@news.eng.convex.com (news access account)
Nntp-Posting-Host: pixel.convex.com
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: CONVEX Realtime Development, Colorado Springs, CO
References: <1992Jul27.123415.977@leland.Stanford.EDU>
Date: Mon, 27 Jul 1992 14:01:10 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.
Lines: 16