Last active
May 18, 2024 07:57
-
-
Save PackmanDude/2409b03fd30879b7953d07e29e9302b8 to your computer and use it in GitHub Desktop.
Displays alphabet. Useful, when doing alphabetical sorting by hand.
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
#!/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