Assigning Elements (The GNU Awk User’s Guide)
From Get docs
Gawk/docs/latest/Assigning-Elements
Next: Array Example, Previous: Reference to Elements, Up: Array Basics [Contents][Index]
8.1.3 Assigning Array Elements
Array elements can be assigned values just like awk
variables:
array[index-expression] = value
array
is the name of an array. The expression index-expression
is the index of the element of the array that is assigned a value. The expression value
is the value to assign to that element of the array.