🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #12124

Re: kill based on #lines in TRN

#12124
From: 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
Technical Details
Message-ID: <1994Oct26.102237.16391@pcg.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!xlink.net!xlink100!smurf.noris.de!msn!faulrs!fauern!news.th-darmstadt.de!terra.wiwi.uni-frankfurt.de!zeus.rbi.informatik.uni-frankfurt.de!news.dfn.de!Germany.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!news.indirect.com!pcg.com!darin
References: <38doao$juk@apakabar.cc.columbia.edu> <38hfv0$qu5@hptemp1.cc.umr.edu> <1994Oct25.121036.7604@chemabs.uucp>

Show Full Headers
Complete Article Headers
Message-ID: <1994Oct26.102237.16391@pcg.com>
Subject: Re: kill based on #lines in TRN
Date: Wed, 26 Oct 1994 10:22:37 GMT
From: darin@pcg.com (Darin Wayrynen)
References: <38doao$juk@apakabar.cc.columbia.edu> <38hfv0$qu5@hptemp1.cc.umr.edu> <1994Oct25.121036.7604@chemabs.uucp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!xlink.net!xlink100!smurf.noris.de!msn!faulrs!fauern!news.th-darmstadt.de!terra.wiwi.uni-frankfurt.de!zeus.rbi.informatik.uni-frankfurt.de!news.dfn.de!Germany.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!news.indirect.com!pcg.com!darin
Newsgroups: news.software.readers
Organization: Paragon Consulting Group
Lines: 28