I have a variable x=7 and I want to echo it plus one, like echo ($x+1) but I\'m getting:
x=7
echo ($x+1)
bash: syntax error near unexpected
try echo $(($x + 1))
I think that only works on some version of bash that is 3 or more..
echo `expr $x + 1`
would be another solution