Skip to content

Instantly share code, notes, and snippets.

@PackmanDude
Last active May 18, 2024 07:57
Show Gist options
  • Save PackmanDude/2409b03fd30879b7953d07e29e9302b8 to your computer and use it in GitHub Desktop.
Save PackmanDude/2409b03fd30879b7953d07e29e9302b8 to your computer and use it in GitHub Desktop.
Displays alphabet. Useful, when doing alphabetical sorting by hand.
#!/usr/bin/env bash
# - Example output
#
# A B C D E F G
# H I J K L M N
# O P Q R S T U
# V W X Y Z
for i in {A..Z}
do
case $i in
G) printf %s "$i\n";;
N) printf %s "$i\n";;
U) printf %s "$i\n";;
Z) printf %s "$i\n";;
*) printf %s "$i ";;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment