Last active
January 30, 2022 04:45
-
-
Save atomicstack/65ab9a78f9a275228a898a6c5535793a to your computer and use it in GitHub Desktop.
print examples of every installed figlet font. nicer than showfigfonts as it uses --termwidth and --filter border
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
#!/bin/bash | |
for f in /usr/share/figlet/*; do | |
font_name=$(basename "$f" | awk -F '.' '{print $1}') | |
message=" $font_name " | |
banner=$(toilet --filter border --font $font_name --termwidth "$message" 2>/dev/null) | |
[[ -z "$banner" ]] && continue | |
echo -e "$font_name:\n$banner\n" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment