# In bash, you should do your check in arithmetic context: if (( a > b )); then ... fi # For POSIX shells that don't support (()), you can use -lt and -gt. if [ "$a" -gt "$b" ]; then ... fi
if [ $VARIABLE1 != $VARIABLE2 ]; then echo "do something" else echo "do something else" fi