🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #203

Re: Sort problem . .

#203
From: Tony Porczyk
Date: Thu, 30 Jul 1992 03:28
22 lines
1190 bytes
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.
Technical Details
Message-ID: <7=pmx9.messina@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!csus.edu!netcomsv!mork!messina
References: <1992Jul27.123415.977@leland.Stanford.EDU> <zynm!yh.messina@netcom.com> <1992Jul29.205422.6336@prl.dec.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell
Path: arc1-ca.pugleaf.net!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