Skip to content

Instantly share code, notes, and snippets.

@kuwa72
Last active August 30, 2017 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuwa72/5e465127983371c66724429c73763c1f to your computer and use it in GitHub Desktop.
Save kuwa72/5e465127983371c66724429c73763c1f to your computer and use it in GitHub Desktop.
ぬるぽガッ
yes 'echo $((RANDOM%3))' | bash | head -n 100 | while read X;do E=$P;P=$N;N=$X; echo $X;if [[ "$N" == 2 && "$P" == 1 && "$E" == 0 ]];then echo "ガッ!!!";break;fi;done | sed -e 's/0/ぬ/' -e 's/1/る/' -e 's/2/ぽ/'
@kuwa72
Copy link
Author

kuwa72 commented Aug 30, 2017

Output is as allowed:














ガッ!!!

@kuwa72
Copy link
Author

kuwa72 commented Aug 30, 2017

N=ぬるぽ;gshuf -ri 0-2|while read X;do Y=$X${Y:0:2};echo ${N:X:1};[ $Y == 210 ]&&echo "ガッ"&&break;done

gshuf=GNU coreutils's shuf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment