Skip to content

Instantly share code, notes, and snippets.

@nvartolomei
Created December 2, 2012 18:06
Show Gist options
  • Save nvartolomei/4190212 to your computer and use it in GitHub Desktop.
Save nvartolomei/4190212 to your computer and use it in GitHub Desktop.
bash maze generator
yes 'c=(╱ ╲);printf ${c[RANDOM%2]}'|bash
@OlegSchwann
Copy link

Very original.

And this little improvement will print not indefinitely, but only one full screen:

c=('' ''); I=$(<<<"$(stty size) * p" dc); while (( I-- )); do printf ${c[RANDOM%2]}; done

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