分类: LINUX
2008-07-17 18:49:32
shell编程实例三:一个简单的目录菜单 | ||
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 Linux联盟收集整理 |