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

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!cs.utexas.edu!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: Sort problem . .
  5. Message-ID: <1992Jul28.211816.23291@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: <1992Jul28.095415.4640@prl.dec.com> <1992Jul28.102938.12375@news.eng.convex.com> <1992Jul28.223113*Harald.Eikrem@delab.sintef.no>
  12. Date: Tue, 28 Jul 1992 21:18:16 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: 17
  17.  
  18. From the keyboard of Harald.Eikrem@delab.sintef.no:
  19. :! This does seem to work:
  20. :! 
  21. :!     ps axu | (read line; echo "$line"; sort +3rn) 
  22. :
  23. :Yeah, nice for {,k,z,ba}sh.  Why not simply
  24. :
  25. :        ps aux | ( line; sort -rn +3 )
  26.  
  27. line: Command not found.
  28.  
  29. --tom
  30. -- 
  31.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  32.     If you have ever seen the grim word "login:" on a screen, your mind
  33.     is now a wholly-owned subsidiary of The Death Star.
  34.                 John Woods in <14105@ksr.com> of comp.unix.bsd
  35.