shell for循環1到100

用bash shell寫程序時,常常會用到for循環,特別是從1到100這種需求,這裏記錄幾種shell中從1到100的循環方法 方法 類c語言 [html]  view plain  copy  print ? for ((i=1; i<=100; i ++))   do       echo $i   done   in使用 [html]  view plain  copy  print ?
相關文章
相關標籤/搜索