Thread View: news.software.nntp
7 messages
7 total messages
Started by Jeff Mohler
Fri, 24 Oct 1997 00:00
Adding masive amounts of newgroups
Author: Jeff Mohler
Date: Fri, 24 Oct 1997 00:00
Date: Fri, 24 Oct 1997 00:00
26 lines
1423 bytes
1423 bytes
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? Also..Id rather not take a few hours (at best) to add the groups. -- Geoff Mohler Resistance is futile! (if < 1ohm) Network Services Analyst http://www.tgn.net/~gemohler Williams Communications Group S.O.N.I.C. Member (WWW.SUPRAS.COM) (918)588-5239 87T @385Hp
Re: Adding masive amounts of newgroups
Author: Andrew Gierth
Date: Fri, 24 Oct 1997 00:00
Date: Fri, 24 Oct 1997 00:00
19 lines
1261 bytes
1261 bytes
>>>>> "Jeff" == Jeff Mohler <gemohler@wcg.net> writes:
Jeff> Is there a smart compare utility that will compare the 34k
Jeff> groups I do have, with the "new" list of 5,000, and tell me
Jeff> which ones I _really_ dont have?
Assuming the file 'groups' has just the new newsgroup names in,
sorted in order, then do
awk '{print $1}' active | sort | comm -23 groups - >groups.new
and groups.new will contain only the groups that you don't already
have.
--
Andrew.
Re: (SOLVED)Adding masive amounts of newgroups
Author: Ron Echeverri
Date: Fri, 24 Oct 1997 00:00
Date: Fri, 24 Oct 1997 00:00
18 lines
1290 bytes
1290 bytes
In article <87hga6u8nq.fsf@erlenstar.demon.co.uk>,
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
>>>>>> "Jeff" == Jeff Mohler <gemohler@wcg.net> writes:
>Jeff> awk '{print $3}' /var/log/news/unwanted.log > newgroups
>Jeff> awk '{print $1 " 0000000000 000000000001 y"}' uniqnewgroups > active.add
>And how many of those groups were moderated?
Maybe he's running a Site of Virtue.
rone
--
Ron Echeverri "What, me pithy?" +-+
Systems/Usenet Administration Mountain View ->b |
Best Internet Communications, Inc. \ \
<rone+sig@best.net> <URL:http://www.ennui.org/~rone/> \_|
Re: Adding masive amounts of newgroups
Author: 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
Re: (SOLVED)Adding masive amounts of newgroups
Author: Andrew Gierth
Date: Fri, 24 Oct 1997 00:00
Date: Fri, 24 Oct 1997 00:00
13 lines
1116 bytes
1116 bytes
>>>>> "Jeff" == Jeff Mohler <gemohler@wcg.net> writes:
Jeff> awk '{print $3}' /var/log/news/unwanted.log > newgroups
[...]
Jeff> awk '{print $1 " 0000000000 000000000001 y"}' uniqnewgroups > active.add
And how many of those groups were moderated?
--
Andrew.
Re: Adding masive amounts of newgroups
Author: Thomas Neumann
Date: Fri, 24 Oct 1997 00:00
Date: Fri, 24 Oct 1997 00:00
23 lines
1242 bytes
1242 bytes
Jeff Mohler <gemohler@wcg.net> writes: > 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? Try "actmerge", comes with INN. -t
Re: (SOLVED)Adding masive amounts of newgroups
Author: Sven Paulus
Date: Sat, 25 Oct 1997 00:00
Date: Sat, 25 Oct 1997 00:00
15 lines
1078 bytes
1078 bytes
Jeff Mohler <gemohler@wcg.net> wrote: JM> sort < active.org > active.org This doesn't work with most shells. Use sort -o active.org active.org instead. Sven -- --Sven-Paulus----------28-48-32--3-----ub6v@rz.uni-karlsruhe.de------ --Karlstr.-55----------30--2-50-29-----sven@oops.sub.de-------------- --D-76133-Karlsruhe----44-49-10--8-----T#-49-721-9375094---------irc- --PGP-ID-3C9A6091-------9-12-19-71-----F#-49-721-9375095-----svennie-
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads