Article View: news.software.nntp
Article #80127Re: Trim newsgroups
From: Alexander Bartolich
Date: Tue, 17 Feb 2009 10:29
Date: Tue, 17 Feb 2009 10:29
28 lines
2085 bytes
2085 bytes
midjet wrote:
>
> Does exist a trim of a list of newsgroups that keep the efficien/activ
> groups only
I use a script like this:
$ cat rmgroup-empty.sh
#!/bin/sh
num=${1:-500}
echo ctlinnd throttle rmgroup
egrep -if "rmgroup-empty-include" "/var/lib/news/active" |
awk '$2 - $3 < 0 { printf "ctlinnd rmgroup %s # %d\n", $1, $2 - $3; }' |
head "-${num}"
echo ctlinnd go rmgroup
The output of rmgroup-empty.sh is a shell script.
Redirect it to file, have look at it, then execute it.
File "rmgroup-empty-include" contains a list of hierarchies that should
by managed by the script, e.g.:
$ cat rmgroup-empty-include
^alt\.
^free\.
--
seq 0 1 99 | xargs -I. echo 'Romani Ite Domum!'
Technical Details
Message-ID:
<gne3iq$6uj$1@news.albasani.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!feeder.news-service.com!feeder.erje.net!news2.arglkargh.de!news.albasani.net!not-for-mailReferences:
<p81kp4tjhts0irabk1822s2bleleislr67@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <gne3iq$6uj$1@news.albasani.net> Subject: Re: Trim newsgroups Date: Tue, 17 Feb 2009 10:29:46 +0000 From: Alexander Bartolich <alexander.bartolich@gmx.at> References: <p81kp4tjhts0irabk1822s2bleleislr67@4ax.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!feeder.news-service.com!feeder.erje.net!news2.arglkargh.de!news.albasani.net!not-for-mail Newsgroups: news.software.nntp Organization: albasani.net Lines: 28 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net dkpSHvzhpv2jNBcnuA+JCeCglPzmAV0XMHhbp4xgm4D11t6DF5jFLIvusrM81dUaPRKje0gIFc80LmKcuzHvTPI4PdJLAX9ZksEPzalgNtBC18ufP7EmFcNT1zwYOC29 X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Tue, 17 Feb 2009 10:29:46 +0000 (UTC) X-User-ID: a8sX5bi3oJtfYvoPSGe3DA6C6imzdk72p1yC7rdoWg3NKOWmjO3cixH5ULsyQ0w8tqixSlsCDBN1+07OEAE1RQ== X-Editing-Begin: 2009-02-17 11:28:05 CET Cancel-Lock: sha1:EbZBGB0AOEnMnT8oZlDm9uJlMiU= User-Agent: slrn/0.9.9p1 (Linux) X-NNTP-Posting-Host: y97jTHZYfbXdOAMcxIYaCGQO/z0UGAlCxJPGxDcO9/U= X-Editing-Close: 2009-02-17 11:32:12 CET