Tuesday, 6 August 2013

do mathmatics in linux shell

do mathmatics in linux shell

I'm using ubuntu 12.04. When I run commands in shell as below, it shows
expr: non-integer argument error, I don't know why, could anyone help me?
thanks a lot!
jude@ubuntu:~$ x=20
jude@ubuntu:~$ y=5
jude@ubuntu:~$ expr x / y
expr: non-integer argument

No comments:

Post a Comment