How to define two variable x=20, y=5 and then to print division of x and y (i.e. x/y) – bash

I am using Ubuntu 14.04 and i tried this :

$ x=20  
$ y=5  
$ expr x / y 

But i got this error:

expr: non-integer argument


Source: bash

Leave a Reply