With awk
I filtered a file and saved into a variable foo
. For example, echo $foo
returns 1700 / 2340
.
edit: I know how to filter again and save each number into a variable so some math could be done with the 2 variables.
But I'd like to know if it is possible to evaluate the expression easily, I mean, some command
to produce 0,726495726
(the result of the division 1700 / 2340
), e.g., command $foo
outputs 0,726495726
.