var_1=2 var_2=3 var_res="$[$var_1+$var_2]" echo $_var_res #print 5 转载于:https://www.cnblogs.com/bjdxy/archive/2013/05/03/3056828.html