Created
January 30, 2012 20:38
-
-
Save pavellishin/1706540 to your computer and use it in GitHub Desktop.
Bottles of Beer.
This file contains hidden or 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
p() { s='';[ $1 != 1 ]&&s='s';echo $1 bottle$s of beer$2;};a=" on the wall";for x in {99..1};do y=$[$x-1];p $x "$a, ";p $x ". Take one down pass it around, ";p $y "$a.";done | |
# 173 chars, shitty wrapping. |
176 characters, but still with the shitty line breaks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trimmed one character off the end.