using figlet to pimp your scripts

I just read about the unix tool ‘figlet’. One can create some kind of ascii art text.
Let’t dive into it quickly:

cbo$ figlist | while read font; 
do figlet -f $font "$font";
echo $font;  
done

Figlet fonts in this directory:
                                          
#####    ##   #    # #    # ###### #####  
#    #  #  #  ##   # ##   # #      #    # 
#####  #    # # #  # # #  # #####  #    # 
#    # ###### #  # # #  # # #      #####  
#    # #    # #   ## #   ## #      #   #  
#####  #    # #    # #    # ###### #    # 
                                          
banner
 _     _       
| |   (_)      
| |__  _  __ _ 
| '_ \| |/ _` |
| |_) | | (_| |
|_.__/|_|\__, |
          __/ |
         |___/ 
big
                                            
_|        _|                      _|        
_|_|_|    _|    _|_|      _|_|_|  _|  _|    
_|    _|  _|  _|    _|  _|        _|_|      
_|    _|  _|  _|    _|  _|        _|  _|    
_|_|_|    _|    _|_|      _|_|_|  _|    _|  
                                            
                                            
block
  _   _   _   _   _   _  
 / \ / \ / \ / \ / \ / \ 
( b | u | b | b | l | e )
 \_/ \_/ \_/ \_/ \_/ \_/ 
bubble
+-+-+-+-+-+-+-+
|d|i|g|i|t|a|l|
+-+-+-+-+-+-+-+
digital
                                        _   _            _ 
                                       | |_(_)_ ____   _(_)
                                       | __| | '__\ \ / / |
                                       | |_| | |   \ V /| |
                                        \__|_|_|    \_/ |_|
                                                           
ivrit
                                     
    _/                               
   _/    _/_/      _/_/_/  _/_/_/    
  _/  _/_/_/_/  _/    _/  _/    _/   
 _/  _/        _/    _/  _/    _/    
_/    _/_/_/    _/_/_/  _/    _/     
                                     
                                     
lean
           
._ _ o._ o 
| | ||| || 
           
mini
mnemonic
mnemonic
                          
               o          
 ,   __   ,_        _ _|_ 
/ \_/    /  |  |  |/ \_|  
 \/ \___/   |_/|_/|__/ |_/
                 /|       
                 \|       
script
      |               |                
  __| __ \   _` |  _` |  _ \\ \  \   / 
\__ \ | | | (   | (   | (   |\ \  \ /  
____/_| |_|\__,_|\__,_|\___/  \_/\_/   
                                       
shadow
         __            __ 
   _____/ /___ _____  / /_
  / ___/ / __ `/ __ \/ __/
 (__  ) / /_/ / / / / /_  
/____/_/\__,_/_/ /_/\__/  
                          
slant
               _ _ 
 ____ __  __ _| | |
(_-< '  \/ _` | | |
/__/_|_|_\__,_|_|_|
                   
small
                                  
 ,           ,   _   ,_  o    _|_ 
/ \_/|/|/|  / \_/   /  | | |/\_|  
 \/  | | |_/ \/ \__/   |/|/|_/ |_/
                          (|      
smscript
               |              |              
(_-<  ` \ (_-<   \   _` |  _` |  _ \\ \  \ / 
___/_|_|_|___/_| _|\__,_|\__,_|\___/ \_/\_/  
                                             
smshadow
                 __          __ 
  ___ __ _  ___ / /__ ____  / /_
 (_-

You can pipe any string into figlet

cbo$while [ 1 ];
do
        clear
        date +%r | figlet
        sleep 1
done

  ___ _____  ____   ___    ____  ___                    
 / _ \___ /_|___ \ / _ \ _| ___|/ _ \   _ __  _ __ ___  
| | | ||_ (_) __) | | | (_)___ \ (_) | | '_ \| '_ ` _ \ 
| |_| |__) | / __/| |_| |_ ___) \__, | | |_) | | | | | |
 \___/____(_)_____|\___/(_)____/  /_/  | .__/|_| |_| |_|
                                       |_|      

Leave a Reply