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

原文地址:https://www.cnblogs.com/mylinux/p/4790855.html