Im having trouble formulating the following: Im trying to use
echo "$var1 - $var2"|bc -l
inside an if statement like
if [$(`echo "$var1 - $var2"|bc -l`)=0]
then
echo "bloop"
fi
however the statement comes back with the numerical result plus and error I tried echoing the result before entering the loop and I get
./script.sh: [2.00000: not found
Any Ideas? Thanks in advance.