Hi,
I've got the syntax for the case statement in korn shell (running on Solaris) but I can't figure out how to pose a question and read the answer as the input to the case statement. Do I just
print "Quesion:y/n"
read ans
ans="y"
case $ans in
y) print "blah blah";;
n) print "blah blah blah";;
esac
help
idiotboy
I've got the syntax for the case statement in korn shell (running on Solaris) but I can't figure out how to pose a question and read the answer as the input to the case statement. Do I just
print "Quesion:y/n"
read ans
ans="y"
case $ans in
y) print "blah blah";;
n) print "blah blah blah";;
esac
help
idiotboy