星期四, 1月 03, 2008

shell_scrpt_for

for 迴圈格式:

for 變數 in 範圍
do
    命令1
    命令2
    .....
done
ex 
for f in a b c d 
do 
echo $f
  done 

沒有留言: