🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #666

cn

#666
From: Joubert Berger
Date: Tue, 20 Feb 1990 17:48
31 lines
1567 bytes
Here is a quick little script that I converted to work with nn.
Originaly, it worked with rn.  
			     Joubert
---------------------------< CUT HERE >------------------------------------
# !/bin/sh
# Sun Nov 30 22:34:48 EST 1986	(...!sunybcs!gworek / ...!boulder!forys)
# Thu Feb 8   gt6152a@prism.gatech.edu
#             Modefied cn to work with nn (patchlevel 10)
#             NOTE:  You might want to change the following line below:
#		     printf "[%3.3s] %-20.20", $2, $1; \
#                                      ^^^^^
#                    This is the max length of the new group name that will be
#                    printed.
#
#	cn - Check for available news, multicolumn style.
#
	nncheck -Q -t | sort +1 -2 |\
		awk '{ \
			printf "[%3.3s] %-20.20s", $1, $2; \
			if ((NR % 3) == 0) \
				print ""; \
		} END { \
			if ((NR) && (NR % 3)) \
				print ""; \
		}'

-- 
Joubert Berger                    | uucp:  ...!{allegra,amd,hplabs,seismo,
Georgia Institute of Technology,  |             ut-ngp}!gatech!prism!ccastjb
P.O.Box 36152                     | ARPA:  ccastjb@prism.gatech.edu
Atlanta Georgia, 30332            | 
Technical Details
Message-ID: <6183@hydra.gatech.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!mephisto!prism!ccastjb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!mephisto!prism!ccastjb
From: ccastjb@prism.gatech.EDU (Joubert Berger)
Newsgroups: news.software.nn
Subject: cn
Message-ID: <6183@hydra.gatech.EDU>
Date: 20 Feb 90 17:48:32 GMT
Organization: Georgia Institute of Technology
Lines: 31