I am trying to compare two decimal values but I am getting errors. I used
if [ \"$(echo $result1 \'>\' $result2 | bc -l)\" -eq 1 ];then
if [[ `echo "$result1 $result2" | awk '{print ($1 > $2)}'` == 1 ]]; then echo "$result1 is greater than $result2" fi