For loop

리눅스의 shell에서 for 문 돌리기

for ((  i = 0 ;  i <= 5;  i++  ))
do
echo "Welcome $i times"
done

i를 0에서 5까지 출력.

2009년 1월 7일 update
위와 같은 방법으로 0에서 100까지 5씩 증가하는 값 찍기

for ((  i = 0 ;  i <= 100;  i=i+5  ))
do
echo "Welcome $i times"
done


크리에이티브 커먼즈 라이센스
Creative Commons License

Posted by gwlee

2009/01/07 19:02 2009/01/07 19:02
,
Response
0 Trackbacks , 0 Comments
RSS :
http://thegreatgoodplace.com/tt/study/rss/response/57

Trackback URL : http://thegreatgoodplace.com/tt/study/trackback/57

Leave a comment
« Previous : 1 : ... 81 : 82 : 83 : 84 : 85 : 86 : 87 : 88 : 89 : ... 137 : Next »

블로그 이미지

Stay Hungry Stary Foolish!

- gwlee

TC-Cumulus by reznoa requires Flash Player 9 or better.

Site Stats

Total hits:
62336
Today:
17
Yesterday:
65