until
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系统中批量建立用户的Shell 用shell写守护进程 shell是什么 shell技巧 新手看招 Linux Shell编程简单一例 TCSH shell 编程入门 Shell编程