Skip to content

Instantly share code, notes, and snippets.

@pavellishin
Created January 30, 2012 20:38
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 pavellishin/1706540 to your computer and use it in GitHub Desktop.
Save pavellishin/1706540 to your computer and use it in GitHub Desktop.
Bottles of Beer.
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.
@pavellishin
Copy link
Author

Trimmed one character off the end.

@pavellishin
Copy link
Author

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