Thread View: news.software.readers
8 messages
8 total messages
Started by Melanie A. Swain
Wed, 16 Feb 1994 17:15
trn killfile question
Author: Melanie A. Swain
Date: Wed, 16 Feb 1994 17:15
Date: Wed, 16 Feb 1994 17:15
9 lines
1127 bytes
1127 bytes
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
-Melanie
Re: trn killfile question
Author: Wayne Davison
Date: Wed, 16 Feb 1994 19:19
Date: Wed, 16 Feb 1994 19:19
19 lines
1319 bytes
1319 bytes
According to Melanie A. Swain <mas8y@holmes.acc.virginia.edu>: > The user expected the following to kill all posts with 10-19 lines: > /^Lines= 1.*/h:j Nope. First off, the Lines header has a colon on it, not an equal sign. Secondly the regex above will match anything in the 100-199 range, the 1000-1999 range, etc. If your user has a modern version of trn (3.4.1 is the latest), use the following command, as it works the fastest: /: 1.$/Hlines:j If you're having to make do with an old trn use: /^Lines: 1.$/h:j -- Wayne Davison davison@borland.com
Re: trn killfile question
Author: 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
Re: trn killfile question
Author: Larry W. Virden
Date: Fri, 18 Feb 1994 19:19
Date: Fri, 18 Feb 1994 19:19
10 lines
1347 bytes
1347 bytes
Also, remember that many C News sites produce articles without a Lines: header at all - these ones will remain untouched by that kill line. I don't suppose there is any way to tell kill to look at the number of bytes in the msg is there? -- :s Great net resources sought... :s Larry W. Virden INET: lvirden@cas.org :s Personal: 674 Falls Place, Reynoldsburg, OH 43068-1614 The task of an educator should be to irrigate the desert not clear the forest.
Re: trn killfile question
Author: David Charlap
Date: Sat, 19 Feb 1994 00:36
Date: Sat, 19 Feb 1994 00:36
18 lines
1387 bytes
1387 bytes
Steven King, Software Archaeologist <king@wildebeest.cig.mot.com> wrote: > >Try this instead: > >/^Lines: 1.$/h:j If you want to get picky, this will match a one followed by any character. To be more specific, you should probably make it /^Lines: 1[0-9]$/h:j But this is probably unnecessary, since the Lines: field shouldn't have any non-numeric characters in it. -- David Charlap | The contents of this message are not the opinions of Visix Software, Inc. | Visix Software, or of anyone besides myself. david@visix.com +----------------------------------------------------- Member of Team-OS/2 | *** Note that this is a new e-mail address! ***
size vs. Lines: header (was Re: trn killfile question)
Author: Russell Schulz
Date: Mon, 28 Feb 1994 06:14
Date: Mon, 28 Feb 1994 06:14
22 lines
2030 bytes
2030 bytes
lvirden@cas.org writes:
> Also, remember that many C News sites produce articles without a Lines:
> header at all - these ones will remain untouched by that kill line.
>
> I don't suppose there is any way to tell kill to look at the number of
> bytes in the msg is there?
I thought I saw Mr. Spencer saying that Lines: was pretty useless anyway,
as opposed to actually using the article size. this newsreader presents
the size in k, which doesn't give me the granularity of Lines, but:
- Lines _is_ useless for me without knowing how much of it is quoting
- (I won't get into the random-quoting-chars topic here)
- (you're welcome)
- I use that size indicator to let me know, basically, if an article
is small, big, or huuuuuge.
- I never, ever, ever get a `?' there.
works for me. why do people still use Lines: then?
--
Russell Schulz russell@alpha3.ersys.edmonton.ab.ca ersys!rschulz Shad 86c
Re: size vs. Lines: header (was Re: trn killfile question)
Author: Christopher Davis
Date: Tue, 01 Mar 1994 17:54
Date: Tue, 01 Mar 1994 17:54
24 lines
1964 bytes
1964 bytes
RS> == Russell Schulz <russell@alpha3.ersys.edmonton.ab.ca>
RS> - Lines _is_ useless for me without knowing how much of it is quoting
RS> - (I won't get into the random-quoting-chars topic here)
RS> - (you're welcome)
RS> - I use that size indicator to let me know, basically, if an article
RS> is small, big, or huuuuuge.
RS> - I never, ever, ever get a `?' there.
Lines: gives me a good, intuitive feel for how many "screenfuls" a message
is (barring pathological cases like people who don't use newlines).
Since my newsreader is set up to color "things that look like quoting"
(regexp-based), it's easy to skim past.
I never, ever, ever get a '?' there either, for two reasons:
- my newsreader would put a "0" there instead ;-)
- I run INN.
--
* Christopher Davis * <ckd@kei.com> * (was <ckd@eff.org>) * MIME * [CKD1] *
"It's 106 ms to Chicago, we've got a full disk of GIFs, half a meg of
hypertext, it's dark, and we're wearing sunglasses." "Click it."
Re: size vs. Lines: header (was Re: trn killfile question)
Author: Larry W. Virden
Date: Wed, 02 Mar 1994 14:55
Date: Wed, 02 Mar 1994 14:55
8 lines
1482 bytes
1482 bytes
I am used to thinking in terms of pages or screens rather than bytes. I guess a better piece of info would be 'How many screens of original article text is present in this posting?' -- :s Great net resources sought... :s Larry W. Virden INET: lvirden@cas.org :s Personal: 674 Falls Place, Reynoldsburg, OH 43068-1614 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