Table of Contents
bash 逻辑与
# 两种方法
(1) [ $state == "running" -a $name == "zone1" ]
(2) [[ $state == "running" && $name == "zone1" ]]
read
在ksh中read -p的使用好像有问题,会出现 read: no query process,这样的错误提示。
# 因此改成下面的形式
(1)第一种
echo "ThePrompt\c"
read TheSomthing
echo $TheSomething
(2)第二种
read TheSomething?'ThePrompt'