little off topic but could some one offer assintance

marc brady mandrakeexpert at expressindustrial.com.au
Wed May 8 00:43:27 PDT 2002


ok thats a step i ws not useing

read i

was useing 

read

no matter what i typed it ran every command anyhow

where do you implement the commands you want ran in the setup you gave me?

marc



On Tuesday 07 May 2002 03:30 pm, you wrote:
> In message <200205080323.23963.mandrakeexpert at expressindustrial.com.au>
>
>           marc brady <mandrakeexpert at expressindustrial.com.au> wittered:
> > i am trying to write a script and I am not programmer at all
> >
> > i need to be able to
> >
> > 1-when prompted enter a value of 1,2,or 3
> > 2-after the option is entered the script will then execute the right
> > command for the option that was entered at the prompt
> >
> > this is probably easy for most of you but i do not mess with programming
> > so i can figure it out
>
> #!/bin/sh
>
> read i
>
> case "$i" in
>    1)
>       echo "You chose option 1";
>       ;;
>    2)
>       echo "You chose option 2";
>       ;;
>    3)
>       echo "nooo, not option 3!";
>       ;;
> esac

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list