Skip to content

Fix #21 Minor bug in Call Sign Lookup#35

Open
chrisBosse wants to merge 2 commits intokm4ack:masterfrom
chrisBosse:master
Open

Fix #21 Minor bug in Call Sign Lookup#35
chrisBosse wants to merge 2 commits intokm4ack:masterfrom
chrisBosse:master

Conversation

@chrisBosse
Copy link

Tested with AC1EO and KM4ACK.

https://www.unix.com/shell-programming-and-scripting/164205-awk-print-all-fields-except-last-field.html#award302542665
NAME=$(cat $FILE | head -1 | sed 's/<B>//' | sed 's/<br>//' | awk 'sub(", " $NF, "")')

https://stackoverflow.com/a/17921589
CALL=$(cat $FILE | head -1 | sed 's/<B>//' | sed 's/<br>//' | awk -F ", " '{print $NF}')

I admit I don't fully understand the awk, but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant