Article View: net.sources.bugs
Article #873Re: cn -- a checknews script
From: Jerry Peek
Date: Thu, 04 Dec 1986 18:13
Date: Thu, 04 Dec 1986 18:13
25 lines
1679 bytes
1679 bytes
In article <1549@sunybcs.UUCP> uggworek@sunybcs.UUCP (Don Gworek) writes:
> Here's a cute little shell script that lists available news
> articles in multicolumn form, such as:
>
> [31] comp.lang.c [ 1] wny.yumyum [ 2] mod.sources
> [ 4] comp.unix.questio [ 1] comp.unix.wizards [ 1] mod.computers.sun
> [ 2] mod.computers.wor
A useful script -- lets you use "rn -c" and avoid all the verbosity.
Unfortunately, if a newsgroup has more than 99 unread articles, "cn"
just prints the first two digits of the number. At the expense of 3 more
characters on each line, you can fix the problem by changing this:
> printf "[%2.2s] %-17.17s ", $5, $4; \
to read:
printf "[%3.3s] %-17.17s ", $5, $4; \
[No, I *won't* post a "patch" file for a nine-line program! :-)]
--Jerry Peek, Tektronix, Inc.
US Mail: MS 74-900, P.O. Box 500, Beaverton, OR 97077
uucp-style: {allegra,decvax,hplabs,ihnp4,ucbvax}!tektronix!tektools!jerryp
Domain-style: jerryp@tektools.TEK.COM
Phone: +1 503 627-1603
Technical Details
Message-ID:
<1948@tektools.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!rutgers!sri-unix!hplabs!cae780!tektronix!tekgen!tektools!jerrypReferences:
<1549@sunybcs.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!rutgers!sri-unix!hplabs!cae780!tektronix!tekgen!tektools!jerryp From: jerryp@tektools.UUCP (Jerry Peek) Newsgroups: net.sources.bugs Subject: Re: cn -- a checknews script Message-ID: <1948@tektools.UUCP> Date: Thu, 4-Dec-86 13:13:25 EST Article-I.D.: tektools.1948 Posted: Thu Dec 4 13:13:25 1986 Date-Received: Sat, 6-Dec-86 21:31:45 EST References: <1549@sunybcs.UUCP> Reply-To: jerryp@tektools.UUCP (Jerry Peek) Distribution: na Organization: Tektronix, Inc., Beaverton, OR. Lines: 25 Summary: minor bug fix