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