文件名称:七。循环语句-UNIX初级教程
文件大小:1.01MB
文件格式:PPT
更新时间:2024-05-12 12:27:08
UNIX
七。循环语句 for-in-done 结构 for variable in list-of-value variable 历遍list-of-value 中的值 do 分别执行do语句 commands ……. last-command done 如 do 不换行,则前面应加分号 “;” 例24: 显示for循环变量 $ for count in 1 2 3 > do > echo “ In the loop for $count times” > done In the loop for 1 times In the loop for 2 times In the loop for 3 times $