Skip to content

Instantly share code, notes, and snippets.

@nobucshirai
Created October 9, 2013 00:05
Show Gist options
  • Save nobucshirai/6893999 to your computer and use it in GitHub Desktop.
Save nobucshirai/6893999 to your computer and use it in GitHub Desktop.
Shell has a "cat" command but it doesn't have "dog".
#!/bin/bash
# $Id: dog,v 1.2 2012-03-10 03:02:20+09 shirai Exp shirai $
printf "(\,..,/)\n"
printf "〈 c c 〉\n"
printf "(_,),.、)) \n"
for i in {1..6};do
printf "\033[1A\033[1A\033[1A\r"
if [[ $i = 1 ]];then
printf "(\,..,/)\n"
printf "〈 c c 〉\n"
printf "(_,),.、)) \n"
elif [[ $i = 2 ]];then
printf "(\,..,/)\n"
printf "〈 c c〉\n"
printf "(_,),.、)) \n"
elif [[ $i < 5 ]];then
printf "(\,..,/)\n"
printf "〈 O O〉\n"
printf "(_,),.、)) \n"
elif [[ $i = 5 ]];then
printf "(\,..,/)\n"
printf "〈 _ _ 〉\n"
printf "(_,),.、)) \n"
else
printf "(\,..,/)\n"
printf "〈 c c 〉\n"
printf "(_,),.、)) \n"
fi
sleep 0.8
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment