bash counter code example Example 1: increment number bash i=$((i+1)) ((i=i+1)) let "i=i+1" Example 2: bash counter i=22 i=$((i+1)) #double param