little off topic but could some one offer assintance

timothy bauscher timothy at foce.eiomail.com
Tue May 7 12:31:30 PDT 2002


> 1-when prompted enter a value of 1,2,or 3

i wasn't sure what you meant by "prompted"

> 2-after the option is entered the script will then execute the right
> command 
> for the option that was entered at the prompt

something like this?

cat > test << "EOF
#!/bin/bash

case $1 in
1)
echo FIRSTY
;;
2)
echo SECONDY
;;
3)
echo THIRDY
;;
esac

EOF

chmod a+x test
./test 1
./test 2
./test 3
./test 9



(==timothy==)
-- 
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