Article View: news.software.readers
Article #7736Re: trn killfile question
From: Steven King, Software Archaeolog...
Date: Wed, 16 Feb 1994 21:14
Date: Wed, 16 Feb 1994 21:14
34 lines
2300 bytes
2300 bytes
mas8y@holmes.acc.virginia.edu (Melanie A. Swain) publicly declared: >Hello, > I received a question from a user on how to kill all posts with >fewer than x lines. The user expected the following to >kill all posts with 10-19 lines: >/^Lines= 1.*/h:j >But the above doesn't work. Any suggestions or pointers to an faq >that addresses this question? Thanks! Please respond via email >if possible: mas8y@virginia.edu That will kill all articles which have a line count beginning with the digit "1". So it would kill articles of 1 line, 10-19 lines, 100-199 lines, and so on. The "." in a regular expression matches any character. The "*" following a character matches any number of such characters. The ".*" construct means "Match any number (zero or more) of any characters." Try this instead: /^Lines: 1.$/h:j The "." isn't followed by a "*", so EXACTLY one character will be matched. The "$" means this is at the end of a line. This should match any two digit number beginning with "1"; ie., 10-19. (Warning: I haven't tested this in trn. But it *should* work. I hope.) -- -------------------------------------------------------+----------------------- Only Irish coffee provides in a single glass all four | Steven King essential food groups: alcohol, caffeine, sugar, and | Motorola Cellular fat. (Alex Levine) | king@rtsg.mot.com
Technical Details
Message-ID:
<2ju2ce$p6m@delphinium.cig.mot.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!gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!spool.mu.edu!howland.reston.ans.net!cs.utexas.edu!asuvax!pitstop.mcd.mot.com!mcdphx!schbbs!mothost!delphinium.cig.mot.com!wildebeest!kingReferences:
<MAS8Y.94Feb16121508@holmes.acc.virginia.edu>Show Full Headers
Complete Article Headers
Message-ID: <2ju2ce$p6m@delphinium.cig.mot.com> Subject: Re: trn killfile question Date: Wed, 16 Feb 1994 21:14:54 +0000 From: king@wildebeest.cig.mot.com (Steven King, Software Archaeologist) References: <MAS8Y.94Feb16121508@holmes.acc.virginia.edu> 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!gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!spool.mu.edu!howland.reston.ans.net!cs.utexas.edu!asuvax!pitstop.mcd.mot.com!mcdphx!schbbs!mothost!delphinium.cig.mot.com!wildebeest!king Newsgroups: news.software.readers Organization: Motorola Cellular Infrastructure Group Lines: 34 Reply-To: king@wildebeest.cig.mot.com NNTP-Posting-Host: wildebeest.rtsg.mot.com