[WT-support] Cabrillo to .DTB Convert
Laurent HAAS - F6FVY
f6fvy at free.fr
Sun Jan 14 12:55:36 CET 2007
Hi Dave
Dave Zeph a écrit :
> Is a utility available to convert Cabrillo Logs into .DTB files - or some
> other format into .DTB files???
If the DTB file you want to populate is the one opened with your log,
use the File / Update database menu.
If not, you can easily use a very simple (g)awk script to make a DTB
file. Here is a snippet (txt2dtb.awk) :
{
if ($0) {
if ($0 !~ /^#/) {
$1 = substr((toupper($1) "\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),1,14)
$2 = substr((toupper($2) "\0\0\0\0\0\0\0\0\0\0\0\0"),1,12)
printf("%14s%12s",$1,$2)
}
}
}
Usage : (g)awk -f txt2dtb.awk FileIn.txt > FileOut.dtb
The .txt file must contain one "Callsign data" pair per line. Lines
starting with # are ignored.
73
Larry - F6FVY
More information about the Support
mailing list