How to compare a decimal value with a integer in shell scripting?
Example:
i=1
j=1.2
if [$j -gt $i];then
echo "growth"
else
echo "None of the condition met"
fi
Im getting output as None of the condition met
But i need output as growth,As 1.2 is greater than 1.