Cut isn't needed here
This commit is contained in:
@@ -229,7 +229,7 @@ continentcode=$(echo "$chosen" | sed "s/:.*//")
|
|||||||
radarcode=$(echo "$chosen" | sed "s/..: // ; s/:.*//")
|
radarcode=$(echo "$chosen" | sed "s/..: // ; s/:.*//")
|
||||||
|
|
||||||
# Sanity check of selection and ensure user did not escape.
|
# Sanity check of selection and ensure user did not escape.
|
||||||
echo "$radarcode" | grep -q "^[A-Z]\+$" && printf "$continentcode,$radarcode" | cut -d' ' -f1 > "$radarloc" ;}
|
echo "$radarcode" | grep -q "^[A-Z]\+$" && printf "%s,%s\\n" "$continentcode" "$radarcode" > "$radarloc" ;}
|
||||||
|
|
||||||
getdoppler() {
|
getdoppler() {
|
||||||
cont="$(cat "$radarloc" | sed "s/,.*//")"
|
cont="$(cat "$radarloc" | sed "s/,.*//")"
|
||||||
|
|||||||
Reference in New Issue
Block a user