summaryrefslogtreecommitdiff
path: root/adif2mpw
diff options
context:
space:
mode:
Diffstat (limited to 'adif2mpw')
-rwxr-xr-xadif2mpw8
1 files changed, 8 insertions, 0 deletions
diff --git a/adif2mpw b/adif2mpw
new file mode 100755
index 0000000..189127a
--- /dev/null
+++ b/adif2mpw
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+FIN="$1"
+
+for i in \
+ $(sed -En 's/.*(<GRIDSQUARE[^<]*) (<MY_GRIDSQUARE[^<]*) .* (<TX_PWR[^<]*).*/\1|\2|\3/g;s/<[^>]*>//g;/.* .* .*/d;p' $FIN)
+ do ./gridcal $(echo "$i" | sed -E 's/\|/ /g'); done 2>/dev/null
+