30 December 2017

Daily phrase with calendar date and cowsay [Linux bash script]


Ideally this script would put everything on an image that you can use somewhere, but there are so many tools with options and fonts and versions of tools, that I prefer to leave that for you to glue in to this baseline. If you do, please post a comment with your chosen option/glue/output or whatever you do with this.

As usual, I learn from all, and to all I return what I created. Feel free to do the same.


===== code =========
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/^/        /'


===== result =========




0 Comments:

Post a Comment

<< Home

Too Cool for Internet Explorer