【发布时间】:2012-08-31 14:48:37
【问题描述】:
嗨,我的循环有问题,它在意外标记“fi”附近显示语法错误 不知道小问题出在哪里 但我需要我的 if 循环和我的 for 循环才能工作:
if [ var1 == true ] then
for ip in $(seq 90 254); do ping -c 1 188.118.28.$ip;
done
fi
【问题讨论】:
标签: linux loops if-statement for-loop while-loop