Created
August 25, 2014 20:37
-
-
Save crahan/0b19d00972e628adc7f3 to your computer and use it in GitHub Desktop.
Print out a preview of all installed Figlet fonts.
This file contains hidden or 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
#!/bin/sh | |
if [ "$#" -ne 1 ]; then | |
echo "I need some text to print." | |
exit 1 | |
fi | |
for i in `ls /usr/local/Cellar/figlet/2.2.5/share/figlet/fonts/*.flf`; do | |
echo -e "==== $(basename $i) ====\n" | |
figlet -f $i $1 | |
echo -e "\n\n\n" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note for Debian users: The
figlet
package already provides theshowfigfonts
command which works the same.