jerryp@tektools.UUCP (Jerry Peek) (12/04/86)
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