How do I add a float and an integer in shell scripts?
For example, the following throws an error:
i=1; ((t=i+2.5)); echo "$t";
echo 1.234 2.345 | awk '{print $1 + $2}'
Use awk
Duplicate question.