用until编写一段shell程序,计算1~10的平方 #!/bin/bash int=1 until [ $int -ge 11 ] do sq=`expr $int \* $int` echo $sq int=`expr $int + 1` done