Bash += and -=
Jump to navigation
Jump to search
External
Internal
Overview
+= and -= are assignment operators that can be used to increment/decrement the value of the left operand with the value specified after the operator. The operators can be used on integral values as such:
The += can be used on string values as such: