add 1 to variable bash code example Example 1: increment number bash i=$((i+1)) ((i=i+1)) let "i=i+1" Example 2: sh increment variable let "i=i+1"