#!/bin/bash sum=0 loop=0 until [ $loop -eq 10 ] do let loop=$loop+1 let sum=sum+loop*loop done echo $sum
本文来自博客园,作者:木子欢儿,转载请注明原文链接:https://www.cnblogs.com/HGNET/p/15493312.html