标签:ota 运算 四则运算 bash nbsp equals alt val echo
# /bin/bash
a=10
b=20
value=`expr 2 + 2`
echo "Total value :${value}"
value=`expr $a \* $b`
echo "a * b : ${value}"
value=`expr $b % $a`
echo "a % b : ${value}"
if [ $a == $b ]
then
echo "a equals b"
fi
if [ $a != $b ]
then
echo "a not equals b"
fi
标签:ota 运算 四则运算 bash nbsp equals alt val echo
原文地址:http://www.cnblogs.com/zhj5551/p/7645013.html