Last active
June 3, 2022 02:56
-
-
Save bandarji/8c15093bb39c80f1fc2d to your computer and use it in GitHub Desktop.
NATO Phonetic Alphabet (Bash)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List NATO phonetic alphabet | |
# Type 'nato' in your shell to get the International Radiotelephony Spelling | |
# Alphabet displayed on your screen. | |
function nato() { | |
natostring="Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel India Juliett Kilo Lima Mike November Oscar Papa Quebec Romeo Sierra Tango Uniform Victor Whiskey X-ray Yankee Zulu" | |
clear | |
for letter in ${natostring} ; do | |
printf "%-5s %s\n" ${letter:0:1} ${letter} | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment