bash increment variable code example
Example 1: increment number bash
i=$((i+1))
((i=i+1))
let "i=i+1"
Example 2: increment variable bash
#Increment varible in bash script
((i++))
((i=i+1))
i=$((i+1))
let "i++"
let "i=i+1"
Example 3: sh increment variable
let "i=i+1"