When I run commands in my shell as below, it returns an expr: non-integer argument error. Can someone please explain this to me?
expr: non-integer argument
$ x=20 $ y=5 $
let's suppose
x=50 y=5
then
z=$((x/y))
this will work properly . But if you want to use / operator in case statements than it can't resolve it. In that case use simple strings like div or devide or something else. See the code