标签:linux
while.until.for
break退出循环
continue提前进入下一轮循环
无限循环while特殊用法一:
while :; do
break
done
while特殊用法二:
while read LINE;do
done < /path/to/somefile
unitl bash -n $1 &>/dev/null ;do
read -p "sytax error,[qQ]exit,others vim" CHOISE
case $CHOISE in
q|Q)
break
;;
*)
vi $1
;;
esac
done
标签:linux
原文地址:http://jiaoxianyao.blog.51cto.com/11369252/1916255