How do you write a shell script with multiple choice answers and fill-in-the-blank answers? I have tried Googling this, but I didn't come up with anything. Thanks in advance for your help.
#!/bin/bash
echo "What is the capital of Assyria?"
echo 1. Rome
echo 2. Boston
echo 3. Assur
echo 4. Coconuts
read answer
if [ "$answer" -ne 3 ] ;
then
echo "Into the gorge you go!"
else
echo "You may pass."
fi