#! /bin/sh echo menu test program stop=0 echo menu test program while test $stop -eq 0 do cat << ENDOF 1 : print the date 2, 3 : print working directory 4 : exit ENDOF echo echo 'your choice? \c' read reply echo case $reply in "1") date ;; "2"|"3") pwd ;; "4") stop=1 ;; *) echo invalid choice ;; esac done