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

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!decwrl!pa.dec.com!decprl!decprl!boyd
  3. From: boyd@prl.dec.com (Boyd Roberts)
  4. Subject: Re: Sort problem . .
  5. Message-ID: <1992Jul28.095415.4640@prl.dec.com>
  6. Sender: news@prl.dec.com (USENET News System)
  7. Nntp-Posting-Host: prl313.prl.dec.com
  8. Organization: Digital Equipment Corporation - Paris Research Laboratory
  9. References: <1992Jul27.123415.977@leland.Stanford.EDU> <1992Jul27.140110.846@news.eng.convex.com>
  10. Date: Tue, 28 Jul 1992 09:54:15 GMT
  11. Lines: 16
  12.  
  13. In article <1992Jul27.140110.846@news.eng.convex.com>, Tom Christiansen <tchrist@convex.COM> writes:
  14. > ps axu | ( sed 1q ; sort -nr +3 ) 
  15.  
  16. Eh?  Since when does sed do `unbuffered' reads?
  17.  
  18.     prl313 ; @{echo 1 ; echo 2 ; echo 3} | @{sed 1q ; cat}
  19.     1
  20.  
  21. Nice idea though...
  22.  
  23.  
  24. Boyd Roberts            boyd@prl.dec.com
  25.  
  26. ``When the going gets wierd, the weird turn pro...''
  27.