用shell脚本求和,为什么不输出值,而输出式子1+2+3+4+5+6+……+100
/bin/bash
sum=0
foriin`seq1100`;do
sum=$[1+2]
done
echoTotal=$sum
邮箱: 联系方式: