home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3174 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.0 KB  |  29 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 21:18:16 GMT
  6. Message-ID: <1992Jul29.072924*Harald.Eikrem@delab.sintef.no>
  7. Sender: news@ugle.unit.no (NetNews Administrator)
  8. Organization: SINTEF DELAB, Trondheim, Norway.
  9. References: <1992Jul28.095415.4640@prl.dec.com>
  10.     <1992Jul28.102938.12375@news.eng.convex.com>
  11.     <1992Jul28.223113*Harald.Eikrem@delab.sintef.no>
  12.     <1992Jul28.211816.23291@news.eng.convex.com>
  13. Date: 29 Jul 92 07:29:24
  14. Lines: 13
  15.  
  16. From the clipboard of tchrist@convex.COM (Tom Christiansen):
  17. ! :Yeah, nice for {,k,z,ba}sh.  Why not simply
  18. ! :
  19. ! :        ps aux | ( line; sort -rn +3 )
  20. ! line: Command not found.
  21.  
  22. Why complain?  Many ps variants will not recogise "aux" either.  In fact,
  23. most do not.  I can't think of a way to get a SVID2 ps to produce anywhere
  24. close to what that the requester obviously wanted to sort on, i.e. %CPU
  25. and %MEM.
  26.  
  27.   ~~harald E.
  28.