home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3167 < prev    next >
Encoding:
Text File  |  1992-07-28  |  762 b   |  25 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!news
  3. From: Harald.Eikrem@delab.sintef.no
  4. Subject: Re: Sort problem . .
  5. In-Reply-To: Tom Christiansen's message of Tue, 28 Jul 1992 10:29:38 GMT
  6. Message-ID: <1992Jul28.223113*Harald.Eikrem@delab.sintef.no>
  7. Sender: news@ugle.unit.no (NetNews Administrator)
  8. Organization: SINTEF DELAB, Trondheim, Norway.
  9. References: <1992Jul27.123415.977@leland.Stanford.EDU>
  10.     <1992Jul27.140110.846@news.eng.convex.com>
  11.     <1992Jul28.095415.4640@prl.dec.com>
  12.     <1992Jul28.102938.12375@news.eng.convex.com>
  13. Date: 28 Jul 92 22:31:13
  14. Lines: 9
  15.  
  16. ! This does seem to work:
  17. !     ps axu | (read line; echo "$line"; sort +3rn) 
  18.  
  19. Yeah, nice for {,k,z,ba}sh.  Why not simply
  20.  
  21.         ps aux | ( line; sort -rn +3 )
  22.  
  23.   ~~h
  24.