摘要: 0x00 格式 case variable in pattern1 | pattern2) commands;; pattern3) commands;; *) commands;; esac ## pattern1 | pattern2)处可以只写一个pattern像pattern3处的格式 ## 阅读全文
posted @ 2020-10-17 17:24 she11s 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 0x00 if-then 格式 if command then commands fi ## shell编程的if判断条件与其他语言不同,条件处填写command(命令) ## 如果command执行后返回0(正确执行),则执行then后语句 ## fi结束标志 另一种格式 if command;t 阅读全文
posted @ 2020-10-17 16:59 she11s 阅读(252) 评论(0) 推荐(0) 编辑