您的位置:首页 > 运维架构 > Shell

Linux下Shell注意问题

2017-08-17 11:32 232 查看
#!/bin/bash

if [ 30 -gt 120 ];then

 echo "if"

elif [ 30 -gt 20 ];then

 echo "woshielsif"

else

 echo "woshielse"

fi

 

注意: 必须要按照这个格式来,一个空格都不能少!!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: