summaryrefslogtreecommitdiff
path: root/adif2mpw
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2022-10-06 11:18:24 +0100
committerKatolaZ <katolaz@freaknet.org>2022-10-06 11:18:24 +0100
commit2e07eff6639fc134305a3f460402182b696f4c04 (patch)
tree36ad213d313483d355f5cf467a2e5e6d6d38be6f /adif2mpw
initial commit
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
+