Created
October 29, 2014 13:34
-
-
Save 844196/65248bca1c30f7869fdc to your computer and use it in GitHub Desktop.
じゃけん夜行きましょうね^〜
This file contains 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/zsh | |
w=('じゃけん' '夜' '行きましょうね^〜') | |
out='' | |
while :; do | |
rand=$(expr ${RANDOM} % 3) | |
word=${w[$rand]} | |
printf ${word} | |
out=${out}${word} | |
if `echo ${out} | grep 'じゃけん夜行きましょうね^〜' >/dev/null 2>&1`; then | |
break | |
fi | |
done | |
echo 'おっ、そうだな' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment