4 examples for figlet
# Show demo of available figlet/toilet fonts
for i in ${TOILET_FONT_PATH:=/usr/share/figlet}/*.{t,f}lf; do j=${i##*/}; toilet -d "${i%/*}" -f "$j" "${j%.*}"; done
# Writes out Hey there and prepends a comment which makes the output copy
# pastable into a dot file or a shell script.
figlet "Hey there" | sed -e 's/^/#/'
# Bro... just show me all the fonts I have
(
export __FIGLET_FONT_PATH="/usr/share/figlet/";
export __FIGLET_TEXT="Hello World";
ls "$__FIGLET_FONT_PATH" | while read font_path ; do
font_filename=$( echo "$font_path" | sed 's/^.*\///g' );
echo "font: figlet -f \"$font_filename\" \"$__FIGLET_TEXT\"";
figlet -d "$__FIGLET_FONT_PATH" -f "$font_filename" "$__FIGLET_TEXT" 2>&1;
echo ;
done;
unset __FIGLET_FONT_PATH;
unset __FIGLET_TEXT;
) | more