作者dozer (rezod)
看板LinuxDev
標題Re: [問題] script 印出一百個*
時間Fri May 2 01:08:11 2008
※ 引述《RiverJackson (JACK)》之銘言:
: 請問一下
: for $a in a b c;then
: echo $a
: done
: 語法應該類似這樣 如果我想印出一到一千呢
: for $b in 1:1:100;then
: echo $a
: done
: 這樣寫應該是錯誤的 要怎麼寫呢~~~~
for ((i=0; i < 1000; i++)); do
echo $i
done
--
Real World, The (n.):
1. In programming, those institutions at which programming may
be used in the same sentence as FORTRAN, COBOL, RPG, IBM, etc. 2. To
programmers, the location of non-programmers and activities not related
to programming. 3. A universe in which the standard dress is shirt and
tie and in which a person's working hours are defined as 9 to 5. 4.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.165.165.124
1F:推 RiverJackson:thanks all answer ^^ 05/03 11:58