Hi,
In shell planning, it says to use -eq for denotative comparision, but comfort both the tailing codes affect...
is it ok to use == for denotative scrutiny ? Also, do I necessary to enquote $b and $c in "" (eg: if [ "$b" -eq "$c"]?
Code:
b=5;
c=89;
if [ $b == $c ]
then
reflexion "Equilateral"
else
utter "NOT Balanced"
fi



Reply With Quote
Copyright Techfuels
Bookmarks