Article View: news.software.nntp
Article #22636Re: Adding masive amounts of newgroups
From: Aidan Cully [Staff]
Date: Fri, 24 Oct 1997 00:00
Date: Fri, 24 Oct 1997 00:00
36 lines
1747 bytes
1747 bytes
Jeff Mohler <gemohler@wcg.net> wrote: > > I have a list of about 5k new groups I need to add to my server. > > I have an simple awk script that will add the appropriate data to the > end of a line so I can paste the new groups to the end of my active > file...thats not a problem, done it before. > > The problem is, many of the "new" groups in my list already exist on my > server. I cannot use 'diff' to compare the groups I have, and the ones > I do not because its a line by line comparison. > > Is there a smart compare utility that will compare the 34k groups I do > have, with the "new" list of 5,000, and tell me which ones I _really_ > dont have? If you're using inn, you can use the following shell script for each line of your new group list: cd /var/news/spool ngdir=`echo $ngname | sed s:.:/:` if [ ! -d $ngdir ] ; then don't have this newsgroup fi > Also..Id rather not take a few hours (at best) to add the groups. Rewrite the above in perl :-). --aidan -- Aidan Cully "I'd rather have a bottle in front of me than a frontal Panix Staff lobotomy" aidan@panix.com --Tom Waits
Technical Details
Message-ID:
<62r10n$s17@panix4.panix.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:
<3450F6D9.30E6B5B0@wcg.net>Show Full Headers
Complete Article Headers
Message-ID: <62r10n$s17@panix4.panix.com> Subject: Re: Adding masive amounts of newgroups Date: Fri, 24 Oct 1997 00:00:00 +0000 From: aidan@panix.com (Aidan Cully [Staff]) References: <3450F6D9.30E6B5B0@wcg.net> 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: 284665699 Distribution: inet Organization: Panix Newsgroups: news.software.nntp X-Newsposter: Pnews 4.0-test50 (13 Dec 96)