I have tried all possible combinations that I could find to compare a real and an integer, but they all seemed to fail.
For example
if (( "10.0" == "10" )); then
echo "Joy"
else
echo "Damn it"
fi
I tried square brackets, I tried without quotes, I tried -eq
, but that was for integers only. So not sure how I am supposed to make this work in bash.