Shell for循环 Shell for循环的语法如下所示 for 变量 in 列表 do command1 command2 ... commandN done 举例: ..} do echo $i done 类C语言也是可以的 ; i<=; i ++)) do echo $i done Shell while循环 while command do Statement(s) to be executed if command is true done 举例: COUNTER= ] do CO…