99 bottles of beer script fun...espeak of course!

Story: Linux Commands for 99 Bottles of Beer and Disk SpaceTotal Replies: 0
Author Content
mooneypilot

Nov 06, 2010
8:46 PM EDT
Scott's post about scripting fun (http://www.linuxplanet.com/linuxplanet/tutorials/7216/1/) using "99 bottles of beer" to learn from is great...but I couldnt resist substituting espeak ....here is the old script.

x="bottles of beer";y="on the wall";for b in {99..1};do echo "$b $x $y, $b $x. Take one down pass it around, $(($b-1)) $x $y"; sleep 3;done

and the improved script... :-)

x="bottles of beer";y="on the wall";for b in {99..1};do espeak "$b $x $y, $b $x. Take one down pass it around, $(($b-1)) $x $y"; sleep 3;done

Posting in this forum is limited to members of the group: [ForumMods, SITEADMINS, MEMBERS.]

Becoming a member of LXer is easy and free. Join Us!