Operators
Operators
io/blog/unix/3837/shell-script-to-make-a-menu-driven-calculator-using-
case
Logical Operators
a=10
b=20
if [ $a != $b ]
then
echo "$a != $b : a is not equal to b"
else
echo "$a != $b: a is equal to b"
fi
OR operator
read a
# check
if [ `expr $a % 2` != 0 -o $a -lt 10 ]
then
else
fi
and operator
read a
# check
if [ `expr $a % 2` == 0 -a $a -gt 10 ]
then
else
fi