So I have a variable that I want to compare with another number in an if statement.
b=8.25
if [ $(echo "$b < 10" | bc) -ne 0 ]; then
echo "hey"
fi
I get the following error
(standard_in) 1: syntax error
I know the issue is having the b variable inside, how can I make it so that I can maintain it in there?
Please help