算术运算 归纳为5种方法 1.算术扩展,例如R=$((1+1)) 2.使用外部程序expr,例如R=`expr 1+1` 3.使用$[],例如R=[1+1] 4.使用命令declare,例如declare -i R=1+1 5.使用命令let,例如let R=1+1 转载于:https://blog.51cto.com/johnwang/325644