分类:
2008-05-10 13:23:02
echoListDirectory..........1 echoChangeDirectory........2 echoEditFile...............3 echoRemoveFile.............4 echoExitMenu...............5 readchoice test$choice=5 do case$choicein 1)ls;; 2)echoEntertargetdirectory readdir cd$dir ;; 3)echoEnterfilename readfile vi$file ;; 4)echoEnterfilename readfile rm$file ;; q|Q|5)echoGoodbye;; *)echoillegalOption esac done |