Article View: news.software.nntp
Article #2517Need a shell script to locate empty groups
From: James Miller
Date: Mon, 18 Apr 1994 17:12
Date: Mon, 18 Apr 1994 17:12
22 lines
1977 bytes
1977 bytes
I am looking to do some spring cleaning of our news server, and in addition to running checkgroups, and removing some misformed groups that have never been posted to, I would like to get a report on every group in the news spool which doesn't have any articles in it. I realize that the groups in this list would not all need to be removed (by any means), but it would help me identify groups wich have aged to extinction or that are not getting fed properly. What I am looking for is shell or perl script that would transverse the news spool directory and report on any directory with no articles in it in the form of a newsgroup (that is, if the directory /usr/spool/news/alt/bork/bork/bork didn't have any visible files in it then it would return "alt.bork.bork.bork"). Unfortunatly I do not have the shell expertise to pull something like this off. Has anybody already done this? If not, does anybody think they could? If you can, and want to, please followup either to news.software.nntp or via email and I will summarize. Thanks in advance, James
Technical Details
Message-ID:
<jmiller.766688467@connected.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.shell.mbox.zip!gmd.de!nntp.gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!ub!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!cyber2.cyberstore.ca!nwnexus!krel.iea.com!connected.com!connected.com!jmillerShow Full Headers
Complete Article Headers
Message-ID: <jmiller.766688467@connected.com> Subject: Need a shell script to locate empty groups Date: Mon, 18 Apr 1994 17:12:49 +0000 From: jmiller@hebron.connected.com (James Miller) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.shell.mbox.zip!gmd.de!nntp.gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!ub!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!cyber2.cyberstore.ca!nwnexus!krel.iea.com!connected.com!connected.com!jmiller Newsgroups: news.software.nntp,comp.unix.shell Followup-To: news.software.nntp Organization: Connected INC -- Internet Services Lines: 21 Summary: Need help writing a shell script to locate groups without articles