xuanwuzhilei 于 2008-01-29 21:59:22发表:
then前面少了个分号,如果将then换行写的话,就不用分号了
xuanwuzhilei 于 2008-01-29 21:58:14发表:
#!/bin/sh i=1 end=50 while [ $i -le $end ] do let i=$i+1; if [ $i %3 == "0" ]; then echo $i; fi done
xuanwuzhilei 于 2008-01-29 21:59:22发表:
then前面少了个分号,如果将then换行写的话,就不用分号了
xuanwuzhilei 于 2008-01-29 21:58:14发表:
#!/bin/sh
i=1
end=50
while [ $i -le $end ]
do
let i=$i+1;
if [ $i %3 == "0" ]; then
echo $i;
fi
done