I'm trying a very simple example of expr command to add a number to a variable. However, everytime I print it this is what I get :
Code :
MY=1
MY= expr $MY+1
// for some reason when i'm putting both the back ticks here, they disappear.
echo $MY
Output:
1+1
Why doesn't the output come as 2 in this case ? I've made sure those are back ticks and the spacing is right.
Also, when I use print instead of echo, it shows print doesn't exist.