diff options
author | KatolaZ <katolaz@freaknet.org> | 2022-10-06 11:18:24 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2022-10-06 11:18:24 +0100 |
commit | 2e07eff6639fc134305a3f460402182b696f4c04 (patch) | |
tree | 36ad213d313483d355f5cf467a2e5e6d6d38be6f /adif2mpw |
initial commit
Diffstat (limited to 'adif2mpw')
-rwxr-xr-x | adif2mpw | 8 |
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 + |