Next: , Previous: Reference to Elements, Up: Array Basics


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.