Skip to content

Instantly share code, notes, and snippets.

@kuncevic
Forked from crahan/figletpreview.sh
Created September 20, 2021 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuncevic/bf0d357710aeb7f3ab55b354b50e41a0 to your computer and use it in GitHub Desktop.
Save kuncevic/bf0d357710aeb7f3ab55b354b50e41a0 to your computer and use it in GitHub Desktop.
Print out a preview of all installed Figlet fonts.
#!/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