shell编程例子--一个简单的目录菜单
时间:2008-05-10 来源:sdccf
iTbulo.COM |
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 |
相关阅读 更多 +