#!/bin/bash

#output a menu

echo "[menu]"
echo "1 do this"
echo "2 do that"
echo "3 etc"

#echo with no end-of-line
echo -n "selection: "

#read user input
read action

#do something depending on input stored in $action variable
case $action in
1) echo "you selected 1"
#put action 1 here
;;
2) echo "you selected 2"
#put action 2 here
;;
3) echo "you selected 3"
#put action 3 here
;;
*) echo "you can select only 1, 2 or 3" #default action
;;
esac

#that's all
echo "bye"