Compound assignments

The following are the compound assignment operations of awk and their equivalents:

Compound operation Equivalent
A += B A = A + B
A –= B A = A – B
A *= B A = A * B
A /= B A = A / B
A %= B A = A % B
A ^= B A = A ^ B