In a script I am grepping for two values and put them in seperate files. In this same script I want to do a calculation. This is the part that I struggle with : ***part of the script*****
NUM1=`cat /app/temp/file1.txt`
echo $NUM1 **value is 198.3**
NUM2=`cat /app/temp/file2.txt`
echo $NUM2 **value is 68.2**
TOT=`echo "$NUM1" / "$NUM2" | bc`
echo $TOT
----
Now, when using bc like this in the same script, it will trow away all numbers after the decimal sign. This is not what i need it to do.
Regards
Wolf