Article View: news.software.nntp
Article #73827Re: Adding new groups
From: John F. Morse
Date: Mon, 10 Jul 2006 12:21
Date: Mon, 10 Jul 2006 12:21
48 lines
2925 bytes
2925 bytes
Black Dragon wrote:
>John F. Morse wrote:
>
>>Instead of using a newsgroups file of varying length descriptions, it
>>might be easier to design a script to "zero out" the high and low water
>>marks to that shown above? A known length: Ten zeros, plus nine zeros
>>and a one, followed by a y flag character. If required, the y flag could
>>later be changed by simple editing. (Thinking out loud here: Wouldn't
>>the flag need to be retained as-is, in order for moderated groups to
>>remain moderated?)
>>
>>
>
>After telneting to a nntp server and listing the active file, I've done
>something like this in an sh shell on my hobby server.
>
># strip watermarks and flags:
>cat active_file | awk '{ print $1 }' > active_no_watermarks
>
># add groups using ctlinnd newgroup
>for group in `cat active_no_watermarks` ; do
> ctlinnd newgroup ${group}
>done
>
>HTH
>
This works great. Either with the watermarks and flag, or with flags alone.
As an example, I had gedit find and replace " m" (space m) with nothing,
to try and get rid of the moderated flag. Then I went to bed.
Twelve hours later gedit had the processor tied up to around 90%
according to top(1). I wound up having to kill gedit.
I ran your awk routine and the file was modified in about one second!
(AMD Duron 1.4 GHz, 512 MB RAM, Debian 3.0r2, KDE 3.3.2.)
A good example of CLI over GUI, even using konsole 1.4.2 under KDE, and
not a tty. ;-)
Thanks again!
--
John
Technical Details
Message-ID:
<wDrsg.114311$mF2.78628@bgtnsc04-news.ops.worldnet.att.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mailReferences:
<mqqrg.333436$Fs1.231735@bgtnsc05-news.ops.worldnet.att.net> <87ac7lgvlb.fsf@windlord.stanford.edu> <pjJrg.106021$mF2.8602@bgtnsc04-news.ops.worldnet.att.net> <e8ojtj$tb9$1@puck.litech.org> <CG6sg.110418$mF2.78339@bgtnsc04-news.ops.worldnet.att.net> <slrneb2cl8.m3h.bd@bdhi.local>Show Full Headers
Complete Article Headers
Message-ID: <wDrsg.114311$mF2.78628@bgtnsc04-news.ops.worldnet.att.net> Subject: Re: Adding new groups Date: Mon, 10 Jul 2006 12:21:48 GMT From: "John F. Morse" <xanadu.bbs@invalid.net> References: <mqqrg.333436$Fs1.231735@bgtnsc05-news.ops.worldnet.att.net> <87ac7lgvlb.fsf@windlord.stanford.edu> <pjJrg.106021$mF2.8602@bgtnsc04-news.ops.worldnet.att.net> <e8ojtj$tb9$1@puck.litech.org> <CG6sg.110418$mF2.78339@bgtnsc04-news.ops.worldnet.att.net> <slrneb2cl8.m3h.bd@bdhi.local> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail Reply-To: xanadu.bbs@invalid.net Organization: Xanadu BBS User-Agent: Debian Thunderbird 1.0.2 (X11/20060423) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <slrneb2cl8.m3h.bd@bdhi.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 48 NNTP-Posting-Host: 2a2265d5f826a7fe565c51e419aa8eee X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1152534108 NNTP-Posting-Date: Mon, 10 Jul 2006 12:21:48 GMT