#/bin/sh A=1 B=1 if `expr $A = $B >/dev/null`; then echo "A is equal to B." else echo "A is not equal to B." fi