首页 > TAG信息列表 > sentence1

第三章、Linux if case判断语句

if 语句 if then fi 单层,单分支 if condition then sentence1 sentence2 ... fi eg: #! /bin/bash a=3 b=4 if [ "${a}" -le "${b}" ] && [ "${a}" -ne 2 ] then echo "${a} is in the range" fi 其他格式 if