linux---shell流程控制

if语句

注意:当把then和 if 或 elif 写到一行的时候,要加分号隔开

在命令行中的写法:

test命令详解:https://www.runoob.com/linux/linux-shell-test.html

for循环

 

在终端的写法:

while循环 当

until循环 直到

 

 case语句

原文地址:https://www.cnblogs.com/1016391912pm/p/12944042.html