Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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!

share|improve this question

5 Answers 5

up vote 25 down vote accepted
$ figlet you want figlet
                                         _      __ _       _      _   
 _   _  ___  _   _  __      ____ _ _ __ | |_   / _(_) __ _| | ___| |_ 
| | | |/ _ \| | | | \ \ /\ / / _` | '_ \| __| | |_| |/ _` | |/ _ \ __|
| |_| | (_) | |_| |  \ V  V / (_| | | | | |_  |  _| | (_| | |  __/ |_ 
 \__, |\___/ \__,_|   \_/\_/ \__,_|_| |_|\__| |_| |_|\__, |_|\___|\__|
 |___/                                               |___/            

share|improve this answer
    
+1 - Oh, how I love figlet. Proportional fonts SUCK... –  Evan Anderson Dec 11 '09 at 15:00
1  
There's a web front end for figlet at: bigtext.org –  davey Dec 21 '09 at 20:27

There's also the old-school command "banner". It is crude but effective.

$ banner banner

######      #     #     #  #     #  #######  ######
#     #    # #    ##    #  ##    #  #        #     #
#     #   #   #   # #   #  # #   #  #        #     #
######   #     #  #  #  #  #  #  #  #####    ######
#     #  #######  #   # #  #   # #  #        #   #
#     #  #     #  #    ##  #    ##  #        #    #
######   #     #  #     #  #     #  #######  #     #

A bit of googling showed me that rpmfind knows where to find it (although rpmfind appears to be having problems themselves these days...)

share|improve this answer

Figlet can do that, and is in the Ubuntu Repos sudo apt-get install figlet:

"Using Figlet to Spice Up your Scripts" is a recent Linux Journal Article on the Topic.

share|improve this answer
    
Too sloooow :-) –  Kyle Brandt Dec 11 '09 at 14:40
2  
Maybe just too small? –  chris Dec 11 '09 at 14:44

It is likely that your first example was created using boxes.

share|improve this answer

Toilet is even better. ;) I always used it as code banner for my applications

  ▞▀▖         ▐     ▜  ▙▗▌      ▗▐         
  ▌  ▙▀▖▌ ▌▞▀▘▜▀ ▝▀▖▐  ▌▘▌▞▀▖▛▀▖▄▜▀ ▞▀▖▙▀▖ 
  ▌ ▖▌  ▚▄▌▝▀▖▐ ▖▞▀▌▐  ▌ ▌▌ ▌▌ ▌▐▐ ▖▌ ▌▌   
  ▝▀ ▘  ▗▄▘▀▀  ▀ ▝▀▘ ▘ ▘ ▘▝▀ ▘ ▘▀▘▀ ▝▀ ▘   

There's a pretty good write-up of how to use it over on cyberciti.biz, titled: UNIX / Linux: Display Large Colourful Text Banner On Screen

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.