🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Jeffrey Hall Jennings Sun, 23 Oct 1994 13:26
kill based on #lines in TRN
#12063
Author: Jeffrey Hall Jennings
Date: Sun, 23 Oct 1994 13:26
8 lines
1111 bytes
I'm not sure if this is the right newgroup; if not, please direct me
to the correct one.
What is the correct command to put in the killfile to kill all
messages that are less than, say, 100 lines?  This is in TRN newreader
and the command, which I once knew but lost, is very illogiocal
and cannot be figured out de novo.  It is a command only a
programmer out of touch with human contact could love...
Thanks in advance.
Re: kill based on #lines in TRN
#12089
Author: Mike Castle
Date: Mon, 24 Oct 1994 23:28
20 lines
1495 bytes
In article <38doao$juk@apakabar.cc.columbia.edu>,
Jeffrey Hall Jennings <jhj4@merhaba.cc.columbia.edu> wrote:
>What is the correct command to put in the killfile to kill all
>messages that are less than, say, 100 lines?  This is in TRN newreader
>and the command, which I once knew but lost, is very illogiocal
>and cannot be figured out de novo.  It is a command only a

Hurm....

/Lines: .$/h:j
/Lines: ..$/h:j

perhaps?


-- 
Mike Castle .-=NEXUS=-.  Life is like a clock:  You can work constantly
  mcastle@cs.umr.edu     and be right all the time, or not work at all
   mcastle@umr.edu       and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen
Re: kill based on #lines in TRN
#12096
Author: lvirden
Date: Tue, 25 Oct 1994 12:10
8 lines
1180 bytes
Trying to use the Lines: header doesn't help, since not all posters generate
a Lines: header.
-- 
:s Great net resources sought...
:s Larry W. Virden                 INET: lvirden@cas.org
:s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html>
The task of an educator should be to irrigate the desert not clear the forest.
Re: kill based on #lines in TRN
#12119
Author: Mike Castle
Date: Wed, 26 Oct 1994 04:34
16 lines
1707 bytes
In article <1994Oct25.121036.7604@chemabs.uucp>,  <lvirden@cas.org> wrote:
>
>Trying to use the Lines: header doesn't help, since not all posters generate
>a Lines: header.

I tested on a couple heavy volume groups that I don't normally
read, and a good portion of the posts were caught.  Maybe it
missed a few, but when 600 of 1000 or so articles were nuked, I
think that's a good start.

mrc
-- 
Mike Castle .-=NEXUS=-.  Life is like a clock:  You can work constantly
  mcastle@cs.umr.edu     and be right all the time, or not work at all
   mcastle@umr.edu       and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen
Re: kill based on #lines in TRN
#12124
Author: Darin Wayrynen
Date: Wed, 26 Oct 1994 10:22
28 lines
2039 bytes
In article <1994Oct25.121036.7604@chemabs.uucp> lvirden@cas.org writes:
>
>Trying to use the Lines: header doesn't help, since not all posters generate
>a Lines: header.
>-- 
>:s Great net resources sought...
>:s Larry W. Virden                 INET: lvirden@cas.org
>:s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html>
>The task of an educator should be to irrigate the desert not clear the forest.

Ok, try this then:

/./ca:%(%`wc %A|awk '{if ($1 > 100) {print 1} else {print 0}}'`=^1?-:j)

This says to run word count on the article, pipe that into awk, test
if the line count output by word count is greater than 100, if so
print 1, else print 0.  The output of the awk script is tested for 1,
and if so, the article is deselected, otherwise the article is
junked...

(It works, but is pretty slow at what it does...)...

Darin
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Darin Wayrynen                                              darin@pcg.com
Paragon Consulting Group                                   (602) 938-9720
Custom Unix/Windows GUI Solutions                        Phoenix, Arizona
Re: kill based on #lines in TRN
#12140
Author: lvirden
Date: Wed, 26 Oct 1994 19:43
11 lines
1630 bytes
Of course, you could trim that down a bit by:
/./ca:%(%`awk 'END {if (NR > 100) {print 1} else {print 0}}' < %A`=^1?-:j)

and you lose one excess process - you had to read the whole file into 
wc anyways - might was well let awk do the counting itself.
-- 
:s Great net resources sought...
:s Larry W. Virden                 INET: lvirden@cas.org
:s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html>
The task of an educator should be to irrigate the desert not clear the forest.
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