summaryrefslogtreecommitdiff
path: root/adif2mpw
blob: 189127a1584c4bd0d65492dd5fa1274e23ac63de (plain)
1
2
3
4
5
6
7
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