linux---shell流程控制

if语句

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

在命令行中的写法:

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

for循环

 

在终端的写法:

while循环 当

until循环 直到

 

 case语句

扫描二维码关注公众号,回复: 11254586 查看本文章

猜你喜欢

转载自www.cnblogs.com/1016391912pm/p/12944042.html