[Xastir] UI-View32 logfiles vs. Xastir logfiles
Curt, WE7U
archer at eskimo.com
Mon Nov 9 14:50:31 EST 2009
On Mon, 9 Nov 2009, Kevin Ratcliff wrote:
> Thanks Curt. Here is a 170kb log file created from UI-View32 version 2.03:
>
> http://www.kevinratcliff.com/20091107.TXT
-----------------------------------------------
#!/usr/bin/perl -W
while (<>) {
chomp;
if (m/START UTC/) {
# Skip it
next;
}
# If line starts with date field, chop off the date, time1,
# time2 fields.
#
if (m/^\d\d\d\d\-\d\d\-\d\d\s.*/) {
s/^\d\d\d\d\-\d\d\-\d\d\s+\d\d\:\d\d:\d\d\s+\d\d\:\d\d:\d\dR//;
# Get rid of " <UI Len=19>"
s/\s\<UI\sLen\=\d+\>:\r/:/;
# Save current line
$temp = $_;
# Read next line
$_ = <>;
chomp;
# Concatenate the two
$temp = $temp . $_ . "\n";
print $temp;
}
}
-----------------------------------------------
See if that works for you. I called mine: "UIView2XastirLog.pl"
--
Curt, WE7U. <http://www.eskimo.com/~archer>
APRS: Where it's at! <http://www.xastir.org>
Lotto: A tax on people who are bad at math. - unknown
Windows: Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me: I picked the coordinate system!"
More information about the Xastir
mailing list