18 lines
442 B
Bash
18 lines
442 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
joke_len=`expr length "$joke"`
|
||
|
joke_font=roman
|
||
|
|
||
|
date_font=`echo "roman colossal" | sed 's/ /\n/g' | sort -R | head -1`
|
||
|
time_font=`echo "roman poison colossal" | sed 's/ /\n/g' | sort -R | head -1`
|
||
|
|
||
|
if [ $joke_len -gt 50 ]; then
|
||
|
joke_font=thick
|
||
|
fi
|
||
|
|
||
|
#echo "$date_font $time_font $joke_font"
|
||
|
date "+%a %b %e" | figlet -Wnctf "$date_font"
|
||
|
date "+%l:%M %p" | figlet -Wnctf "$time_font"
|
||
|
echo -e "\n$joke" | figlet -nctf "$joke_font"
|
||
|
|