标签:
echo please input “runbip” to run bip. variableName="null" while [ $variableName != "runbip" ] do read variableName sleep 1 if [ $variableName != "runbip" ]; then echo please input “runbip” to run the BIP: fi done
参考:
1. Linux Shell编程入门 http://www.cnblogs.com/suyang/archive/2008/05/18/1201990.html
linux shell脚本:在脚本中实现读取键盘输入,根据输入判断下一步的分支
标签:
原文地址:http://www.cnblogs.com/mylinux/p/4790855.html