# #How to create small menu using dialog # dialog --backtitle "Linux Shell Script Tutorial " --title "Main \ Menu" --menu "Move using [UP] [DOWN],[Enter] to \ Select " 15 50 3 \ Date/time "Shows Date and Time" \ Calendar "To see calendar " \ Editor "To start vi editor " 2>/tmp/menuitem.$$ menuitem=`cat /tmp/menuitem.$$` opt=$? case $menuitem in Date/time) date;; Calendar) cal;; Editor) vi;; esac # # ./ch.sh: vivek-tech.com to nixcraft.com referance converted using this tool # See the tool at http://www.nixcraft.com/uniqlinuxfeatures/tools/ #