I am trying to compare two decimal values in shell script but somehow this is not working
When attempted for below values, it works
# echo "3.2 < 3.3" | bc
1
So here the command works. but
# echo "3.2.1 < 3.3.1" | bc
(standard_in) 1: syntax error
(standard_in) 1: syntax error
So if I have a decimal value with two points, bc fails
Is there any way this can be worked out? I am open to use any other interpreter if it fixes both the above scenarios