Thread View: news.software.nn
6 messages
6 total messages
Started by Konstantinos Agouros
Sat, 03 Feb 2001 10:29
How to make my killfile tidy?
Author: Konstantinos Agouros
Date: Sat, 03 Feb 2001 10:29
Date: Sat, 03 Feb 2001 10:29
14 lines
1557 bytes
1557 bytes
Hi, 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? Konstantin -- Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@agouros.de Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185 ---------------------------------------------------------------------------- "Captain, this ship will not sustain the forming of the cosmos." B'Elana Torres
Re: How to make my killfile tidy?
Author: Sven Guckes
Date: Sun, 04 Feb 2001 01:41
Date: Sun, 04 Feb 2001 01:41
15 lines
1433 bytes
1433 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? Now, if you used slrn there'd be the "cleanscore" script for you. However, I have not seen such a thing for nn yet. An entry for the FAQ, perhaps? Sven -- http://slrn.sourceforge.net/cleanscore/
Re: How to make my killfile tidy?
Author: David Lesher
Date: Sun, 04 Feb 2001 03:47
Date: Sun, 04 Feb 2001 03:47
21 lines
1743 bytes
1743 bytes
elwood@news.agouros.de (Konstantinos Agouros) writes: >Hi, >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? Yep. Sort the file. That will bring the expired entries to the top. Delete them, and save. I do this with vim, but you can use your editor of choice... -- A host is a host from coast to coast.................wb8foz@nrk.com & no one will talk to a host that's close........[v].(301) 56-LINUX Unless the host (that isn't close).........................pob 1433 is busy, hung or dead....................................20915-1433
Re: How to make my killfile tidy?
Author: Nick Holloway
Date: Sun, 04 Feb 2001 09:53
Date: Sun, 04 Feb 2001 09:53
22 lines
1738 bytes
1738 bytes
elwood@news.agouros.de (Konstantinos Agouros) writes: > 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 used to use a script something like this (run daily from cron): cd $HOME/.nn if [ ! -f LOCK ] then grep -v '^# ' kill > kill.new mv kill.new kill fi This relies on out of date entries being prefixed with '# '. The check for the LOCK file is to ensure that NN is not currently running. -- `O O' | Nick.Holloway@pyrites.org.uk // ^ \\ | http://www.pyrites.org.uk/
Re: How to make my killfile tidy? -> [vi] :g/^# /d
Author: Sven Guckes
Date: Mon, 05 Feb 2001 14:20
Date: Mon, 05 Feb 2001 14:20
24 lines
1645 bytes
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
Re: How to make my killfile tidy? -> [vi] :g/^# /d
Author: Konstantinos Agouros
Date: Mon, 05 Feb 2001 21:21
Date: Mon, 05 Feb 2001 21:21
34 lines
2200 bytes
2200 bytes
In <2001-02-05T14-09-42@guckes.net> guckes@math.fu-berlin.de (Sven Guckes) writes: >* 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. ;-) Thanks for the information I suspected it but wasn't sure \:))) Konstantin >Sven -- Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@agouros.de Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185 ---------------------------------------------------------------------------- "Captain, this ship will not sustain the forming of the cosmos." B'Elana Torres
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