Shell If Statement
Syntax
if [ expression ]
then
Statement(s) to be executed if expression is true
fi
Example
#!/bin/sh
a=10
b=20
if [ $a == $b ]
then
echo "a is equal to b"
fi
if [ $a != $b ]
then
echo "a is not equal to b"
fi