read + 计算
#!/bin/sbin read -p "please input first number:" a read -p "please input second number:" b echo "a+b=$((a+b))" echo "a-b=$((a-b))"
#!/bin/sbin read -p "please input first number:" a read -p "please input second number:" b echo "a+b=$((a+b))" echo "a-b=$((a-b))"