From bf1e1b66bc4d128354c277dcede6f5ba08eb66b8 Mon Sep 17 00:00:00 2001 From: Alessio Biancalana Date: Sun, 20 Jul 2014 14:46:38 +0200 Subject: [PATCH] implementing bin/octocatthink --- bin/octocatthink | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 bin/octocatthink diff --git a/bin/octocatthink b/bin/octocatthink new file mode 100755 index 0000000..18d77ba --- /dev/null +++ b/bin/octocatthink @@ -0,0 +1,51 @@ +#!/bin/bash +# octocatsay +# Coby Chapple - https://github.com/cobyism/octocatsay + +if [ $# -eq 0 ];then + read line + text="$line" +else + text=$1 + shift + while (( "$#" )); do + text="$text $1" + shift + done +fi + +echo -n " + MMM. .MMM + MMMMMMMMMMMMMMMMMMM + MMMMMMMMMMMMMMMMMMM _"; +for ((i = 0; i < ${#text}; i++)); do + echo -n "_"; +done +echo -n "_ + MMMMMMMMMMMMMMMMMMMMM | "; +for ((i = 0; i < ${#text}; i++)); do + echo -n " "; +done +echo -n " | + MMMMMMMMMMMMMMMMMMMMMMM | $text | + MMMMMMMMMMMMMMMMMMMMMMMM |____"; +for ((i = 0; i < ${#text} -2; i++)); do + echo -n "_"; +done +echo -n "| + MMMM::- -:::::::- -::MMMM O + MM~:~ ~:::::~ ~:~MM O + .. MMMMM::. .:::+:::. .::MMMMM .. + .MM::::: ._. :::::MM. + MMMM;:::::;MMMM + -MM MMMMMMM + ^ M+ MMMMMMMMM + MMMMMMM MM MM MM + MM MM MM MM + MM MM MM MM + .~~MM~MM~MM~MM~~. + ~~~~MM:~MM~~~MM~:MM~~~~ + ~~~~~~==~==~~~==~==~~~~~~ + ~~~~~~==~==~==~==~~~~~~ + :~==~==~==~==~~ +";