case $location in
ColocationOne)
# Define MOSES LAKE workerarray
server[0]=serverone
server[1]=servertwo
esac
echo ${server[0]}
我如何让这个回显:serverone
?
case $location in
ColocationOne)
# Define MOSES LAKE workerarray
server[0]=serverone
server[1]=servertwo
esac
echo ${server[0]}
我如何让这个回显:serverone
?
您设置
location
为字符串ColocationOne
:该脚本将打印
serverone
.