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
Just use the expr command:
expr
$ expr $x + 1 8