while Expression(當為 Expression 真時)
do
Commands
done
範例 :
a=10
while [ $a -eq 10 ]; #注意這裡有;
do
{
a=`echo "$a+1" | bc`
echo "$a\n"
}
done
星期二, 12月 25, 2007
Shell Script :While 用法
張貼者: 拉不拉多的夢幻世界 於 9:50 下午
標籤:
Shell Script
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言