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

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!decwrl!csus.edu!netcomsv!mork!messina
  3. From: messina@netcom.com (Tony Porczyk)
  4. Subject: Re: Sort problem . .
  5. Message-ID: <7=pmx9.messina@netcom.com>
  6. Date: Thu, 30 Jul 92 03:28:17 GMT
  7. Organization: Messina Software
  8. References: <1992Jul27.123415.977@leland.Stanford.EDU> <zynm!yh.messina@netcom.com> <1992Jul29.205422.6336@prl.dec.com>
  9. Lines: 22
  10.  
  11. boyd@prl.dec.com (Boyd Roberts) writes:
  12.  
  13. >In article <zynm!yh.messina@netcom.com>, messina@netcom.com (Tony
  14. >Porczyk) writes:
  15. >> to:
  16. >> fprintf(stderr, "%s COMMAND\n", hdr);
  17.  
  18. >Yeah, right.  Information to stderr.
  19.  
  20. The question was simple - how not to have the header line sorted.  The answer
  21. is equally simple - not having it in stdout will eliminate it from sorting
  22. stdout.  
  23.  
  24. I suppose you don't like simple answers, spoils the fun of writing
  25. buggy and convoluted shell scripts. 
  26.  
  27. BTW, since when is stderr reserved for "non-information"?  Frankly, I
  28. say send to stderr anything that is non-essential in the redirection of
  29. stdout or in piping of stdout, such as sorting.  Header line in this case
  30. is *non-essential*.  Does that qualify it as "non-information"?
  31.  
  32. t.
  33.