linux shell脚本:在脚本中实现读取键盘输入,根据输入判断下一步的分支

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

posted @ 2015-09-08 10:35  oucaijun  阅读(2327)  评论(0编辑  收藏  举报
下载TeamViewer完整版 下载TeamViewer