Textos grandes a partir de caracteres básicos en terminal
Estaba haciendo un script para automatizar el proceso de conexión a una base de datos, en producción.
Uno de esos scripts que conviene usar con cuidad así que pensé en poner un aviso que se mostrara al ejecutarlo:
[user~]$ cat prod_mysql.sh
echo "CUIDAOOOOOOOOO!!!!!" mysql -h localhost -u user_prod -plucksoytuhijo main_data
Pero al ejecutarlo pensé que ese aviso no era tan visible com me gustaría así que recordé una herramienta que usaba hace muchos años. Su nombre es figlet y, casualidades de la vida, todavía está disponible para correr en mi CentOS 6.3 http://www.figlet.org/
La instalación de figlet en CentOS es muy sencilla:
cd /tmp
wget http://pkgs.repoforge.org/figlet/figlet-2.2.2-1.el6.rf.x86_64.rpm
sudo rpm -U figlet-2.2.2-1.el6.rf.x86_64.rpm
Y ahora sólo me queda adaptar mi script:
[user~]$ cat prod_mysql.sh
figlet "CUIDAOOO!"
mysql -h localhost -u user_prod -plucksoytuhijo main_data
Mucho mejor:
[user~]$ ./prod_mysql.sh ____ _ _ ___ ____ _ ___ ___ ___ _ / ___| | | |_ _| _ \ / \ / _ \ / _ \ / _ \| | | | | | | || || | | |/ _ \| | | | | | | | | | | | |___| |_| || || |_| / ___ \ |_| | |_| | |_| |_| \____|\___/|___|____/_/ \_\___/ \___/ \___/(_) Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 18432 Server version: 5.1.61 Source distribution Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>