Open 2663481911 opened 3 years ago
https://lishushuai.gitee.io/2021/03/03/shell%E6%9D%A1%E4%BB%B6%E5%88%A4%E6%96%AD/
shell条件判断条件判断:if if条件判断格式 1234567891011121314151617181920# [] 、[[]]两边都有空格if [ 条件表达式 ]then commendfi# 支持正则if [[ 条件表达式 ]]then commendfi# if elseif [ 条件判断 ]then commendelse commendfi 常用相关参数文件、文件夹、权限的判断
https://lishushuai.gitee.io/2021/03/03/shell%E6%9D%A1%E4%BB%B6%E5%88%A4%E6%96%AD/
shell条件判断条件判断:if if条件判断格式 1234567891011121314151617181920# [] 、[[]]两边都有空格if [ 条件表达式 ]then commendfi# 支持正则if [[ 条件表达式 ]]then commendfi# if elseif [ 条件判断 ]then commendelse commendfi 常用相关参数文件、文件夹、权限的判断