![这里写图片描述](https://img-blog.csdn.net/20161005211815302)
[root@skLinux rootCodeFiles]
[root@skLinux rootCodeFiles]
3+5
[root@skLinux rootCodeFiles]
8
[root@skLinux rootCodeFiles]
-2
[root@skLinux rootCodeFiles]
expr: 语法错误
[root@skLinux rootCodeFiles]
15
[root@skLinux rootCodeFiles]
expr: 语法错误
[root@skLinux rootCodeFiles]
0
[root@skLinux rootCodeFiles]
![这里写图片描述](https://img-blog.csdn.net/20161005212944353)
[root@skLinux rootCodeFiles]
#!/bin/sh
a=10
b=20
c=30
value1=`expr $a + $b + $c`
echo "value1="$value1
value2=`expr $c / $b`
echo "value2="$value2
value3=`expr $c \* $b`
echo "value3="$value3
value4=`expr $a + $c / $b`
echo "value4="$value4
[root@skLinux rootCodeFiles]
value1=60
value2=1
value3=600
value4=11
[root@skLinux rootCodeFiles]