Skip to content

Instantly share code, notes, and snippets.

@mkottman
Created September 30, 2013 12:57
Show Gist options
  • Save mkottman/6763446 to your computer and use it in GitHub Desktop.
Save mkottman/6763446 to your computer and use it in GitHub Desktop.
Show all ASCII art figlet fonts installed on your system using the font itself
#!/bin/sh
figlist | awk '/fonts/ {f=1;next} /control/ {f=0} f {print}' | while read font; do
echo "=== $font ==="
echo $font | figlet -f $font
done | less
@Morpheus0x
Copy link

Use custom text instead of font name:

#!/bin/sh
figlist | awk '/fonts/ {f=1;next} /control/ {f=0} f {print}' | while read font; do
  echo "=== $font ==="
  if [[ $# != 1 ]]; then
    echo $font | figlet -f $font
  else
    echo $1 | figlet -f $font
  fi
done | less

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment