Linux shell while循環語句

for :明確循環次數 while :不確定循環換次數 while循環 (1) while CONDITION;do       statement       statement       <改變循環條件真假的語句> done 編寫腳本,計算1--100的和 #!/bin/bash # sum=0 i=1 while [ $i -le 100  ];do     let sum=$sum+$
相關文章
相關標籤/搜索