Skip to content

Bash function to print an ASCII character image with a greeting message

License

Notifications You must be signed in to change notification settings

maiklam/bash-char-greeting

This branch is 11 commits ahead of nurous/bash-char-greeting:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

adf7faf · Oct 6, 2017

History

21 Commits
May 31, 2016
May 31, 2016
May 31, 2016
Aug 18, 2016
Oct 6, 2017
Oct 6, 2017
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
Oct 6, 2017

Repository files navigation

Bash script to print an ASCII art character with a greeting.

Requirements to run on Mac

brew install coreutils

Usage

./bash_fn includes a function greeting that will print the greeting.

./greet sources ./bash_fn and immediately calls greeting so you have a choice;

  • Import the script ./bash_fn in your ~/.bash_profile and then call greeting

OR

  • Just import the script ./greet in your ~/.bash_profile

Either way opening a new terminal will run the function greeting to print output like below. It will then be available to be run whenever you want in that shell.

~/.bash_profile

...

source ~/bash-char-greeting/bash_fn
greeting

Example Output


      /'.       .--.
      |  '.   .'-,  |
      \    \_/    \_/
       '._.' '._.'
         / . . \
        |=  Y  =|
        \_  ^  _/
          )'-'(
        /`     `\
       | |     | |
       \ \     / /
      {|\_)   (_/|
       /\   '   /\
      |  '.___.'  |
       \  \   /  /
        \  \ /  /
        /  / \  \
       (,,/   \,,)

Regina the Roman Rabbit says "Salvëte, Roxie Isabelle!" :)

$ greeting


                   __              __
                   \ `-._......_.-` /
                    `.  '.    .'  .'
                     //  _`\/`_  \\
                    ||  /\O||O/\  ||
                    |\  \_/||\_/  /|
                    \ '.   \/   .' /
                    / ^ `'~  ~'`   \
                   /  _-^_~ -^_ ~-  |
                   | / ^_ -^_- ~_^\ |
                   | |~_ ^- _-^_ -| |
                   | \  ^-~_ ~-_^ / |
                   \_/;-.,____,.-;\_/
            ==========(_(_(==)_)_)=========

Oliver the Oman Owl says "As-salám aláykum, Roxie Isabelle!" :)

$

About

Bash function to print an ASCII character image with a greeting message

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%