🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by romank Wed, 12 Aug 1998 00:00
active file editing
#30441
Author: romank
Date: Wed, 12 Aug 1998 00:00
37 lines
1219 bytes
Hi all,

has anyone ever had to edit the active file?

I need to get it down to the following:

all the alt. except:

alt.binaries
alt.bainaries
alt.binairies
alt.sex
alt.personals
alt.warez

all the comp. except:

comp.binaries

all the misc. except:

misc.jobs

all the news, talk, soc, sci and rec

I _really_ don't want to do this manually... Does anyone know of a way to
automate this, or have an active file that is similar?

Any help is much appreciated.

Thanks,
Roman

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

Re: active file editing
#30445
Author: Robin
Date: Wed, 12 Aug 1998 00:00
48 lines
1648 bytes
Use "grep -v -f list.file active > active.new"

Robin

--
Remove nomail and the 2 to e-mail me.


romank@graphnet.com wrote in message <6qssev$dpg$1@nnrp1.dejanews.com>...
>Hi all,
>
>has anyone ever had to edit the active file?
>
>I need to get it down to the following:
>
>all the alt. except:
>
>alt.binaries
>alt.bainaries
>alt.binairies
>alt.sex
>alt.personals
>alt.warez
>
>all the comp. except:
>
>comp.binaries
>
>all the misc. except:
>
>misc.jobs
>
>all the news, talk, soc, sci and rec
>
>I _really_ don't want to do this manually... Does anyone know of a way to
>automate this, or have an active file that is similar?
>
>Any help is much appreciated.
>
>Thanks,
>Roman
>
>-----== Posted via Deja News, The Leader in Internet Discussion ==-----
>http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum



Re: active file editing
#30485
Author: Elena Samsonova
Date: Fri, 14 Aug 1998 00:00
66 lines
2221 bytes
romank@graphnet.com wrote:
> 
> Hi all,
> 
> has anyone ever had to edit the active file?

Sure, I have.

> I need to get it down to the following:
> 
> all the alt. except:
> 
> alt.binaries
> alt.bainaries
> alt.binairies
> alt.sex
> alt.personals
> alt.warez
> 
> all the comp. except:
> 
> comp.binaries
> 
> all the misc. except:
> 
> misc.jobs
> 
> all the news, talk, soc, sci and rec
> 
> I _really_ don't want to do this manually... Does anyone know of a way to
> automate this, or have an active file that is similar?

If you run it on UNIX, use the shell script below (note the new lines in
the grep command, they are intentional).  If you are on NT, sorry...

#!/bin/sh
# News groups filtering
# Original active file is saved in active.old.
grep '^alt\.' active | grep -v '^alt\.binaries\.
^alt\.bainaries
^alt\.binairies
^alt\.sex
^alt\.personals
^alt\.warez' > active.new
grep '^comp\.' active | grep -v '^comp\.binaries\.' >> active.new
grep '^misc\.' active | grep -v '^misc\.jobs\.' >> active.new
grep '^news\.
^talk\.
^soc\.
^sci\.
^rec\.' active >> active.new
mv active active.old
mv active.new active
echo All done.
# end of shell script


This will work on IRIX and Linux, but I don't know about other
UNIXs--never tested it there.  If it does not work, check pattern
handling by your 'grep'.


Good luck
Elena

Re: active file editing
#30526
Author: Bill Gunshannon
Date: Mon, 17 Aug 1998 00:00
14 lines
1058 bytes
Maybe I'm just being dense, but what is wrong with just issuing
"ctlinnd rmgroup" commands for the groups you don't want and let
the system take care of editing the active file the way it's supposed
to??

bill

-- 
Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
bill@cs.uofs.edu         |  and a sheep voting on what's for dinner.
University of Scranton   |
Scranton, Pennsylvania   |         #include <std.disclaimer.h>   

Re: active file editing
#30538
Author: Timothy J. Miller
Date: Mon, 17 Aug 1998 00:00
16 lines
1301 bytes
bill@cs.uofs.edu (Bill Gunshannon) writes:

> Maybe I'm just being dense, but what is wrong with just issuing
> "ctlinnd rmgroup" commands for the groups you don't want and let
> the system take care of editing the active file the way it's supposed
> to??

	Because when nuking a hierarchy with more than a few groups, it's
a Bad Thing To Do to a production news server.

-- 
Cerebus <tmill06@ibm.net>
"Although UNIX is more reliable, NT may become more reliable with time"
      -- Ron Redman, deputy technical director of the Fleet Introduction

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