-
-
Save nobucshirai/6893999 to your computer and use it in GitHub Desktop.
Shell has a "cat" command but it doesn't have "dog".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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