select

create a file called select.sh with the following contents:
#!/usr/bin/sh

select x in a b c d e f q
do

   case $ x in
     q)	echo " bye....";
        exit ;;
     *) echo "got $x" ;;
   esac

done

Note: when running the script you may be tempted to press the letters. THAT IS A MISTAKE. YOU MUST PRESS THE NUMBERS.