一.获取用户输入1.基本读取read命令接收标准输入的输入,或其它文件描述符的输入.得到输入后,read命令将数据输入放入一个标准变量中.[root@rac2 ~]# cat t8.sh #!/bin/bash#testing the read commandecho -n "enter your name:" ---:-n用于允许用户在字符串后面立即输入数据,而不是在下一行输入.read nameecho "hello $name ,welcome to my progra
echo please input “runbip” to run bip. variableName="null" while [ $variableName != "runbip" ] do read variableName sleep if [ $variableName != "runbip" ]; then echo please input “runbip” to run the BIP: fi done 参考: 1. Linux