🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #9672

Re: How to make my killfile tidy? -> [vi] :g/^# /d

#9672
From: Sven Guckes
Date: Mon, 05 Feb 2001 14:20
24 lines
1645 bytes
* Konstantinos Agouros <elwood@news.agouros.de>:
> I make extensive use of my killfile for threads that do not
> interest me.  I usually use the 30day-kill option. Since the file
> is growing I would like to know if there is an easy way to clean
> it of old entries that are long expired or is this done anyway?

I just looked at nn's killfile again ($HOME/.nn/kill) -
all the expired entries are simply commented with "# ".
So it is pretty easy to delete all those lines within vi:

   :g/^# /d

Yup, that's it.

So that's what I'd do:

  $ cd $HOME/.nn
  $ vim -c 'g/^# /d' -c 'wq' kill

A shell alias should suffice for that.
No need for a script.  ;-)

Sven
Technical Details
Message-ID: <2001-02-05T14-09-42@guckes.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!fu-berlin.de!uni-berlin.de!ritz.math.fu-berlin.DE!not-for-mail
References: <elwood.981196074@news.agouros.de>

Show Full Headers
Complete Article Headers
Message-ID: <2001-02-05T14-09-42@guckes.net>
Subject: Re: How to make my killfile tidy? -> [vi] :g/^# /d
Date: Mon, 05 Feb 2001 14:20:26 +0000
From: guckes@math.fu-berlin.de (Sven Guckes)
References: <elwood.981196074@news.agouros.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!fu-berlin.de!uni-berlin.de!ritz.math.fu-berlin.DE!not-for-mail
Newsgroups: news.software.nn
Organization: Freie Universitaet Berlin
Lines: 23
Reply-To: guckes-usenet@math.fu-berlin.de
NNTP-Posting-Host: ritz.math.fu-berlin.de (160.45.41.21)
X-Trace: fu-berlin.de 981382826 18575495 160.45.41.21 (16 17 19)
Mail-Copies-To: guckes-usenet-cc@math.fu-berlin.de
User-Agent: slrn/0.9.6.3 (SunOS)