Linux Gvim shell until循环

#until循环:执行一系列command直到条件为true时停止,一般while循环优先与until循环,极少数until更加有用
#格式如下:
#until expression
#do
#    Statment to be executed until expression is true
#done
#例:使用until输出0-9数字

1 number=0
2 until [ ! $number -lt 10 ]
3 do
4     echo " ${number} "
5     number=` expr ${number} + 1 `
6 done
原文地址:https://www.cnblogs.com/blog4matto/p/5572042.html