#!/bin/bash
A=5
B=2
C=`expr $A + $B`
echo $C
D=$((A + B))
echo $D
E=$(expr $A '+' $B)
echo $E
F=$[A + B]
echo $F
let "G = A + B"
echo $G
C=`expr $A - $B`
echo $C
D=$((A - B))
echo $D
E=$(expr $A '-' $B)
echo $E
F=$[A - B]
echo $F
let "G = A - B"
echo $G
乘除就忽略了。。。。。