if [ $1 = "yes" ]; then
echo "hello 1"
else
echo "hello 2"
fi
#注意判断条件中变量与运算符要用空格隔开,不然无法执行一个简单的linux shell判断小程序
最新推荐文章于 2022-02-24 10:07:09 发布
if [ $1 = "yes" ]; then
echo "hello 1"
else
echo "hello 2"
fi
#注意判断条件中变量与运算符要用空格隔开,不然无法执行
33万+

被折叠的 条评论
为什么被折叠?