Skip to content

Instantly share code, notes, and snippets.

@844196
Created October 29, 2014 13:34
Show Gist options
  • Save 844196/65248bca1c30f7869fdc to your computer and use it in GitHub Desktop.
Save 844196/65248bca1c30f7869fdc to your computer and use it in GitHub Desktop.
じゃけん夜行きましょうね^〜
#!/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