linux shell 算术运算{expr、bc、dc、(( ))和[ ]}
查看如下链接
https://blog.csdn.net/whatday/article/details/90416243
补充:整型,浮点型计算
echo $(expr "scale=2;3+3"|bc)
查看如下链接
https://blog.csdn.net/whatday/article/details/90416243
补充:整型,浮点型计算
echo $(expr "scale=2;3+3"|bc)