--script to accept a number and check the given no is +ve or -ve
echo "enter"
read n
if [ $n -eq 0 ]
then
echo "=0"
elif [ $n -gt 0 ]
then
echo "+ve"
else
echo "-ve"
fi
--o/p
[chandra@localhost ~]$ sh u
enter
2
+ve
[chandra@localhost ~]$ sh u
enter
0
=0
[chandra@localhost ~]$ sh u
enter
-5
-ve