linux shell if 语法

Linux shell if 语法 基本语法: if [ command ]; then 符合该条件执行的语句 fi 二、扩展语法: if [ command ];then 符合该条件执行的语句 elif [ command ];then 符合该条件执行的语句 else 符合该条件执行的语句 fi 注意: 一、[ ]表示条件测试。注意这里的空格很重要。要注意在'['后面和']'前面都必需要有空格
相关文章
相关标签/搜索