欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Shell腳本之無(wú)限循環(huán)的兩種方法

 更新時(shí)間:2015年03月18日 11:13:24   投稿:junjie  
這篇文章主要介紹了Shell腳本之無(wú)限循環(huán)的兩種方法,本文直接給出代碼實(shí)例,需要的朋友可以參考下

for 實(shí)現(xiàn):

復(fù)制代碼 代碼如下:

#!/bin/bash
set i=0
set j=0
for((i=0;i<10;))
do
        let "j=j+1"
        echo "-------------j is $j -------------------"
done

while實(shí)現(xiàn):
復(fù)制代碼 代碼如下:

#!/bin/bash
set j=2
while true
do
        let "j=j+1"
        echo "----------j is $j--------------"
done

相關(guān)文章

最新評(píng)論