view 99 @ 7060:abf52478fe85

<b_jonas> slashlearn ^/^ (also notated by \xe2\x8a\x95 or \xe2\x8a\xbb) is the exclusive-or operator; \xe2\x88\xa7 (also notated by /\\ or &) is the and (conjunction) operator; ^ (also notated by \xe2\x86\x91 or ** or \xe2\x8b\x86) is the power operator.
author HackBot
date Tue, 01 Mar 2016 06:45:09 +0000
parents 4685c5cd6ab6
children
line wrap: on
line source

b=bottle a=({no+more+$b\s,1+$b,{2..99}+$b\s}+of+beer) w=on+the+wall
x=(Take+one+down,+pass+it+around Go+to+the+store+and+buy+some+more)
for i in {99..0};{
echo "${a[i]^} $w, ${a[i]}.
${x[!i]}, ${a[i-1]} $w."
}|tr + \