Quantcast
Channel: Admins Goodies » ascii
Viewing all articles
Browse latest Browse all 4

What command prints a string as “big ascii text art” in bash?

$
0
0

Question

I’m looking for a program that turns an ASCII string into something like the “ascii art” below:

    .-"^`                                        /`^"-.
  .'   ___                                      /___   `.
 /    /.---.                                    .---.    
|    //     '-.  ___________________________ .-'     \    |
|   ;|         /--------------------------//         |;   |
   ||       |_)          Red Hat         (_/|       ||   /
   |   .  ;  |     Enterprise Linux     || ; / .  / |  /
  '_ \    |                          ||/ / / // /_/'
        \   |    Server Release 5.3    |/ / / //
         `'-__     Codename Tikanga     /_/_/-'`
                '--------------------------'

I don’t have a matching example but I would like the string be turned into some multi line text, like:

 __    __
/  |  /  |
|  |  |  |
|  |--|  |
|  |--|  |
|  |  |  | 
|_/   |_/

for the letter H and so on… I would like to use this to show certain warning messages, for example when the user is about to run a script that will delete the production database and so on…

Thanks!

Answer

$ figlet you want figlet
                                         _      __ _       _      _   
 _   _  ___  _   _  __      ____ _ _ __ | |_   / _(_) __ _| | ___| |_ 
| | | |/ _ | | | |   / / / _` | '_ | __| | |_| |/ _` | |/ _  __|
| |_| | (_) | |_| |   V  V / (_| | | | | |_  |  _| | (_| | |  __/ |_ 
 __, |___/ __,_|   _/_/ __,_|_| |_|__| |_| |_|__, |_|___|__|
 |___/                                               |___/            

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images