Skip to content

Instantly share code, notes, and snippets.

@bandarji
Last active June 3, 2022 02:56
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bandarji/8c15093bb39c80f1fc2d to your computer and use it in GitHub Desktop.
Save bandarji/8c15093bb39c80f1fc2d to your computer and use it in GitHub Desktop.
NATO Phonetic Alphabet (Bash)
# 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