Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Amiga Shellscript

Date:04/20/05
Author:Anonymous
URL:n/a
Comments:3
Info:n/a
Score: (2.97 in 31 votes)
.key num_bottles

set count <num_bottles$99>
set bword "bottles"

LAB LOOP

    echo $count $bword "of beer on the wall."
    echo $count $bword "of beer."
    echo "Take one down, pass it around."
    set count `eval $count - 1`
    if $count eq 1
       set bword "bottle"
    else
       set bword "bottles"
    endif
    echo $count $bword "of beer."
    echo ""

if $count gt 0
   skip LOOP BACK
endif

Download Source | Write Comment

Alternative Versions

Comments

>>  Toss said on 07/09/06 02:34:53

Toss good old stuff! :)

>>  hemanta said on 04/19/08 00:06:25

hemanta the good old time.

i remember.

i have a bag with 2000 amiga-740kb-discs

:)

>>  Col said on 04/09/09 15:14:16

Col I hope you've got CrossDOS, Amiga DSDD disks were 880k... ;-)

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: