home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3152 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!darwin.sura.net!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: Sort problem . .
  5. Message-ID: <1992Jul27.140110.846@news.eng.convex.com>
  6. Originator: tchrist@pixel.convex.com
  7. Sender: usenet@news.eng.convex.com (news access account)
  8. Nntp-Posting-Host: pixel.convex.com
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. Organization: CONVEX Realtime Development, Colorado Springs, CO
  11. References: <1992Jul27.123415.977@leland.Stanford.EDU>
  12. Date: Mon, 27 Jul 1992 14:01:10 GMT
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 16
  17.  
  18. From the keyboard of peer@ccrma.stanford.edu (Peer Landa):
  19. :I'm trying to list & sort all my processes by memory use:
  20. :alias  pss  ' ps uax | sort -nr +3'
  21. :It works fine except for that the "title line" also gets sorted and therefore  
  22. :appears at the bottom . . any idea to avoid this ?
  23.  
  24. ps axu | ( sed 1q ; sort -nr +3 ) 
  25.  
  26. --tom
  27.  
  28. -- 
  29.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  30.     If you have ever seen the grim word "login:" on a screen, your mind
  31.     is now a wholly-owned subsidiary of The Death Star.
  32.                 John Woods in <14105@ksr.com> of comp.unix.bsd
  33.