我想制作一个要求输入的 bash 脚本,但这不起作用。
Echo "Enter code A1"
Read A1
if [[ "$A1" == "1" ]]
then
echo "Accepted"
else
echo "Sorry but that is wrong"
fi
即使我回答 1,我总是得到错误的字符串
我想制作一个要求输入的 bash 脚本,但这不起作用。
Echo "Enter code A1"
Read A1
if [[ "$A1" == "1" ]]
then
echo "Accepted"
else
echo "Sorry but that is wrong"
fi
即使我回答 1,我总是得到错误的字符串