cn -- a checknews script
Jerry Peek
jerryp at tektools.UUCP
Fri Dec 5 04:13:25 AEST 1986
In article <1549 at sunybcs.UUCP> uggworek at 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 at tektools.TEK.COM
Phone: +1 503 627-1603
More information about the Comp.sources.bugs
mailing list