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

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!usc!sdd.hp.com!mips!darwin.sura.net!jvnc.net!yale.edu!news.yale.edu!neutron!dcs
  3. From: dcs@neutron.chem.yale.edu (Dave Schweisguth)
  4. Subject: Re: Sort problem . .
  5. Message-ID: <1992Jul29.140051.14685@news.yale.edu>
  6. Sender: news@news.yale.edu (USENET News System)
  7. Nntp-Posting-Host: neutron.chem.yale.edu
  8. Organization: Yale University
  9. X-Newsreader: Tin 1.1 PL4
  10. References: <1992Jul29.072924*Harald.Eikrem@delab.sintef.no>
  11. Date: Wed, 29 Jul 1992 14:00:51 GMT
  12. Lines: 17
  13.  
  14. Harald.Eikrem@delab.sintef.no writes:
  15. : From the clipboard of tchrist@convex.COM (Tom Christiansen):
  16. : ! :Yeah, nice for {,k,z,ba}sh.  Why not simply
  17. : ! :
  18. : ! :        ps aux | ( line; sort -rn +3 )
  19. : ! 
  20. : ! line: Command not found.
  21.  
  22. Leaving aside the issue of what fields one wants to sort on,
  23.  
  24.   ps -options | (echo "$<"; sort -still more options)
  25.  
  26. works in csh.
  27.  
  28. --
  29. | Dave Schweisguth   Yale MB&B & Chemistry   Email: dcs@neutron.chem.yale.edu |
  30. | Lab phone: 203-432-5208      Fax: 203-432-6144     Home phone: 203-624-3866 |
  31.