Assignment operators

Assignment operators allow you to assign values to variables in Shell Script. Here are some of the most common assignment operators in Shell Script:

“=” (simple assignment)
“+=” (additive assignment)
“-=” (subtractive assignment)
“*=” (multiplicative assignment)
“/=” (divisive assignment)
“%=” (module assignment)

Here is an example of how to use the “+=” assignment operator in Shell Script to add a value to an existing variable:

number=5
number=10
echo “The number is $number”