Let's say you have a variable in bash that already contains values.
The += operator can be used to add values to the variable. In this example, the text "bar" is appended to the variable.
Printing the variable will now print the following.
Hello World bar
Add new lines
In this example, bar followed by a new line is appended to the foo variable.