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 this way:
echo $(( $X + 1 ))