| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | reconciling data two different sources, yo batch gurus! |
Hello all!
You all know I get data in via email on vessels plying the
big blue and compile them and make them available via email
along with other notes.
I've two sources of this data. ONe, when it works reliably, is emails when
they're posted on the web from the web site
direct to the bbs machine. THis is processed automatically.
A second source of this data comes from an associate, is
posted once per day, last 48 hours' activity. sO, I"ve
got four fields in both files that I can compare, keeping
only those which I want to post.
FIelds are not fixed width, but I can pull off certain
information. NOte the following entries:
06/06/2009 00:16 N6ABC KI4MMZ
06/06/2009 01:57 W5EIM KI4MMZ
06/06/2009 13:19 KB1ILA KC5AGO
06/06/2009 15:15 N1YT KI4MMZ
Extra cr/lf between them so they wouldn't word wrap funny.
NOte we've got the date, the time, call sign of vessel, and
call sign of poster.
I can pipe the last 48 hours file through listmod pulling
out first four fields. BUild a batch using listmod which
looks like this ...
NOte we want to capture complete lines if the data is not
already present in our master file. Anybody see any easier
ways to go about this I"m not thinking of?
::postrec.bat reconciles data from second source with first ...{at}echo off
echo reconciliation of boat list data from kr4or.
rem %1 is vessel's call sign
rem %2 is posting date
rem %3 posting time
rem %4 posted by
cd \temp
fgrep386 -s %1 boatdump.txt >> chekpost.txt
rem move data to location of received reconciliation data and process ...
move chekpost.txt c:\nettamer\mail
cd \nettamer\mail
:: get count of line number in backhanded way
echo * >> lognum.sem
type lognum.sem | find "*" /i /c >> lognum.txt
nset lognum=$1 * Origin: Radio REscue net operations BBS (1:116/901)SEEN-BY: 10/1 3 11/331 34/999 120/228 123/500 128/2 187 140/1 222/2 226/0 SEEN-BY: 249/303 250/306 261/20 38 100 1381 1404 1406 1410 1418 266/1413 SEEN-BY: 280/1027 320/119 393/68 396/45 633/104 260 267 285 640/954 690/682 SEEN-BY: 690/734 712/0 313 848 800/432 801/161 189 2222/700 2320/100 105 200 SEEN-BY: 5030/1256 @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™.