Linux学习笔记(9)之Shell编程入门--判断语句

语法一:shell if [ 条件表达式 ]bash thenless 命令序列 1spa else code 命令序列 2ip fi字符串 语法二:class if [ 条件表达式 ]; thentest 命令序列file fi 语法三: if test 条件表达式 1 then 命令序列 1 elif [ 条件表达式 2 ] then 命令序列 2 else 命令序列 3 fi 编写shell
相关文章
相关标签/搜索