Not able execute 'expr' in RedHat Linux 2.6.9-22.EL

Hi,

I am very new to Shell Scripting and am using Redhat Linux 2.6.9.-22.EL kernal version. When I am executing one statement like below I am getting the below mentioned error:

$ x=50
$ y=10
$ z=`expr x / y`
expr: non-numeric argument
$

Could anyone help in this how to resolve?

Thanks in advace,
Anil.

$ z=`expr $x / $y`

** Please delete this post ** (had posted the same reply as above)

Dear Aju,

Thanks a lot. Its working fine now.. :):slight_smile: