increment a variable in bash 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"
i=$((i+1))
((i=i+1))
let "i=i+1"
#Increment varible in bash script
((i++))
((i=i+1))
i=$((i+1))
let "i++"
let "i=i+1"