Return to Snippet

Revision: 24112
at February 21, 2010 16:33 by adkatrit


Initial Code
(g=echo;s=s;n="o more";o="bottle";e="of beer";a="Take one down and pass it around";w="on the wall";for ((i=99;i>0;i--));do [ $i == 1 ]&&unset s;$g -n "$i $o$s $e $w, $i $o$s $e. $a, `[ $[i-1] != 0 ]&&$g $[i-1]||$g "n$n"` $o`[ $i != 2 ]&&$g s` $e $w. ";done;$g -ne "N$n ${o}s $e $w, n$n ${o}s $e. Go to the store and buy some more, 99 ${o}s $e $w.")| say

Initial URL

                                

Initial Description
works for mac osx

Initial Title
99 bottles of beer on the wall

Initial Tags

                                

Initial Language
Bash