Skip to content

Instantly share code, notes, and snippets.

@gorenje
Created March 1, 2012 22:03
Show Gist options
  • Save gorenje/1953545 to your computer and use it in GitHub Desktop.
Save gorenje/1953545 to your computer and use it in GitHub Desktop.
something for http://code-poems.com/
#!/bin/bash
# not an original poem,
# no known author,
# no known copyright,
# aesthetics over originality?
_..() { .._ ${@//[tt]?[^s]/2};}
__.() { echo -ne $@' ' ;}
one() { __. '1' && _.. $@ ;}
and() { __. '&' && _.. $@ ;}
two() { __. '2' && _.. $@ ;}
.__() { echo -ne $@\\n ;}
.._() { .__ ${@//[ow]?[^s]/1};}
one one was a racehorse
two two was one too
one day one one won one race
and two two won one too
@gorenje
Copy link
Author

gorenje commented Oct 15, 2012

to view:

curl "https://raw.github.com/gist/1953545/95d5b5f1796abd471ccd15ab4d62c9e67041ee20/racing%20numbers" 2>/dev/null | /bin/bash

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