TIP: Click on subject to list as thread! ANSI
echo: batpower
to: Paul Quinn
from: Richard Webb
date: 2009-04-21 14:18:24
subject: Newsgroup (NG) digests

Hi Paul,

following up a message from Richard Webb to Paul Quinn:


RW> FIrst we're looking for the line which has (tm) in it, as
RW> that's the start of the actual text.  THen we stuff that
RW> line number into an environment variable as in ...
RW> type newsline.txt | find "(TM)" /i /n >> getstart.txt
RW> :: remove the brackets around the line number using chg.
YOu could use replace as you did with your nodelist search
for much the same.  I use chg for a lot of things like this
as well.
Allows you to just remove, remove and replace with some
pretty complex replacements possible.  I remove the left
bracket completely, replace right bracket with ascii 32,
then we have line number isolated for nset to work with.
as in ...


RW> chg /i getstart.txt /s [91] /r ""
RW> chg /i getstart.txt /s [93] /r [32]
RW> nset first=$1 < getstart.txt
All the preceding is necessary because when saved to a text
file we get all the header info, which we don't want to
post.  sO, we're going to lose it into ye old bit bucket.

THe later invocations of chg remove that =20 that always
shows up at end of paragraphs when people do plaintext that
really isn't and the = at the end of lines.
so there's a whole lotta replacin' goin' on before we post
this stuff as fidonet echomail .


PQ> Ahh, yes.  I had a similar idea for mine; I had in mind to create an
PQ> index of "From:" line numbers, and then run from that.  Great
PQ> minds... and all that.  :)  Nah, I figure the only =exotic= software
PQ> I'll need is fgrep.  My current toolbox of (mostly Horst's) utils
PQ> will do nicely, besides.

YEp, and our bfds coordinator has fgrep386, and I believe
chg.exe if you can't get replace to do what you want.

RW> YEp, that can work.  I"m just straight cutting, but you can
RW> index the from: lines and stuff them one at a time into env
RW> var and let sed do the heavy lifting.

YOu could, if you want to isolate each message in the digest as its own
post.  But, as a digest anyway, I think I'd just
do a split, and make subject line xxx newsgroup digest pt ## and call it
even .

PQ> Sure did.  It means I'm on the right track.  Thanks for your
PQ> insights. 

RW> GLad I could be of help to you for a change.  YOu've sure
RW> steered me the right direction a couple times this last
RW> couple of years .
YOur mileage might vary, but I"d just split 'em and post
'em.

Regards,
           Richard
--- timEd 1.10.y2k+
* Origin: Radio REscue net operations BBS (1:116/901)
SEEN-BY: 10/1 3 34/999 120/228 123/500 128/2 140/1 222/2 226/0 249/303 250/306
SEEN-BY: 261/20 38 100 1381 1404 1406 1410 1418 266/1413 280/1027 320/119
SEEN-BY: 393/68 396/45 633/104 260 267 285 640/954 690/682 734 712/0 313 848
SEEN-BY: 800/432 801/161 189 2222/700 2320/100 105 200 2905/0
@PATH: 116/901 3634/12 123/500 261/38 633/260 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.