Skip to content

Commit

Permalink
implementing bin/octocatthink
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed Jul 20, 2014
1 parent 6503b1c commit bf1e1b6
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions 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~~~~
~~~~~~==~==~~~==~==~~~~~~
~~~~~~==~==~==~==~~~~~~
:~==~==~==~==~~
";

0 comments on commit bf1e1b6

Please sign in to comment.