3
edits
(category aircraft instruments) |
(→Compass: Make "quick dirty script" less dirty.) |
||
Line 14: | Line 14: | ||
#!/bin/bash | #!/bin/bash | ||
if | if (( $# != 2 )); then | ||
echo "Usage: $ | echo "Usage: ${0##*/} lat long" | ||
echo "East and north are positive." | echo "East and north are positive." | ||
else | else | ||
testmagvar $1 $2 0 $(date +"%m %d %g")|tail -1 | read -ra x < <(testmagvar "$1" "$2" 0 "$(date +"%m %d %g")" | tail -1) | ||
echo "${x[5]}" | |||
fi | fi | ||
edits