
Voce usa, adora e nem sabe, rsrs!
# cowsay ao abrir o terminal
hora=`date +%H%M`
noite="Boa noite, $USER!!!"
dia="Bom dia, $USER!!!"
tarde="Boa tarde, $USER!!!"
if [ $hora -lt 1200 ]
then
if [ $hora -lt 0500 ]
then
texto=$noite
else
texto=$dia
fi
elif [ $hora -gt 1800 ]
then
texto=$noite
else
texto=$tarde
fi
dir='/usr/share/cowsay/cows/'
file=`/bin/ls -1 "$dir" | sort --random-sort | head -1`
cow=$(echo "$file" | sed -e "s/\.cow//")
cowsay -f $cow $texto
echo ""
# fim do cowsay