sh9 #! /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 with input 1 2 3 4 produces menu test program menu test program 1 : print the date 2, 3 : print working directory 4 : exit your choice? \c Mon Jul 31 13:47:19 PDT 2006 1 : print the date 2, 3 : print working directory 4 : exit your choice? \c /cs/faculty/teo/public_html/cs60.m06/prog 1 : print the date 2, 3 : print working directory 4 : exit your choice? \c /cs/faculty/teo/public_html/cs60.m06/prog 1 : print the date 2, 3 : print working directory 4 : exit your choice? \c