Daily phrase with calendar date and cowsay [Linux bash script]
As usual, I learn from all, and to all I return what I created. Feel free to do the same.
cat ~/bin/frase-del-dia.sh
#/bin/bash
(echo -en "\n\n\n\n\n\t"; date +%A-%d-%B ; fortune -se -n 180 /usr/share/games/fortunes/es/sabiduria.fortunes /usr/share/games/fortunes/es/proverbios.fortunes /usr/share/games/fortunes/es/lao-tse.fortunes | cowsay ; echo -e "\n\n\n\n\n") | sed 's/^/ /'
0 Comments:
Post a Comment
<< Home