How do I divide in the Linux console?

command-line, divide, linux, math

Solution

In the bash shell, surround arithmetic expressions with `$(( ... ))`

$ echo $(( 7 / 3 ))
2

Although I think you are limited to integers.

Problem

I have to variables and I want to find the value of one divided by the other. What commands should I use to do this?

Original source