Article View: news.software.nntp
Article #9402Re: need help with script to add new newsgroup
From: Vince Vielhaber
Date: Wed, 17 Jul 1996 00:00
Date: Wed, 17 Jul 1996 00:00
37 lines
1926 bytes
1926 bytes
In article 3515@nav.cc.tx.us, Dana Brewer <dana@nav.cc.tx.us> () writes:
>I'm trying to create a perl script to read the unwanted.log and use
>ctlinnd to add new newsgroups to active. (These were some groups that
>we had taken out of active because of disk storage problems - this is a
>one-time program).
Although it's not perl, this works quite well. I manually edit the
unwanted.log to get rid of groups that I know aren't valid first. I
had considered adding a yes/no prompt per group, but since there are
so many more no's than yes's, I found it easier to clean it up some
with a few greps and a pass thru pico.
for grp in `awk '{print $2}' < unwanted.log` ; do
echo "Newgrouping $grp"
ctlinnd newgroup $grp y xxx@yyy
done
echo "all done"
echo
cp /dev/null unwanted.log
Vince.
--
-----------------------------------------------------------------------------
Vince Vielhaber -- KA8CSH Email: vev@msen.com Flame mail: /dev/null
Database Manager Michigan Area Repeater Council
MSEN.COM is NOT the Microsoft Network!
# include <std/disclaimer.h> TEAM OS/2
-----------------------------------------------------------------------------
Technical Details
Message-ID:
<4siif9$9g3@pravda.aa.msen.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<31E545DC.3515@nav.cc.tx.us> <1996Jul15.173644.24474@cbgate.cbc.com>Show Full Headers
Complete Article Headers
Message-ID: <4siif9$9g3@pravda.aa.msen.com> Subject: Re: need help with script to add new newsgroup Date: Wed, 17 Jul 1996 00:00:00 +0000 From: vev@msen.com (Vince Vielhaber) References: <31E545DC.3515@nav.cc.tx.us> <1996Jul15.173644.24474@cbgate.cbc.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 169591771 Content-type: Text/Plain; charset=US-ASCII Organization: What, me organized? Mime-version: 1.0 Newsgroups: news.software.nntp