| 1 | # Print a string with all the figlet fonts |
| 2 | figlet-sample () { |
| 3 | if [[ -n "${1+x}" ]] |
| 4 | then |
| 5 | ls -FG `figlet -I 2` | grep --color=auto 'flf' | xargs -I '{}' basename '{}' '.flf' | xargs -I '{}' figlet -f '{}' $1 |
| 6 | else |
| 7 | echo 'Usage: figlet-sample <string>' |
| 8 | fi |
| 9 | } |