Bash Increment Variable In Function, Bash provides several ways to increment and decrement a counter variable in scripts.