[aprssig] xastir as a satellite ground station (suggestions)
Jason Winningham
jdw at eng.uah.edu
Thu Sep 15 13:10:02 EDT 2005
On Sep 15, 2005, at 11:19 AM, Andrew Rich wrote:
> 2) Because the log files do not have the date / time out the front, it
> makes
> it really hard to use the data for a web page (or search)
Here's a bit o' Perl code that could help with that:
#!/usr/bin/perl
$prefix = "# #";
while (<>)
{
if (/^#/)
{
chop;
$prefix = "$_";
}
else
{
print "$prefix # $_";
}
}
Input is an xastir log file, output looks like
# Mon Aug 30 08:06:03 CDT 2004 # KG4WSV-4>APX133,WIDE:=/<veN8W:)x
XASTIR-Darwin
Any lines before the first date comment won't have a timestamp prefix.
-Jason
kg4wsv
More information about the aprssig
mailing list