(gawk) Arrays
Info Catalog
(gawk) Built-in Variables
(gawk) Top
(gawk) Built-in
Arrays in `awk'
***************
An "array" is a table of values, called "elements". The elements of
an array are distinguished by their indices. "Indices" may be either
numbers or strings. `awk' maintains a single set of names that may be
used for naming variables, arrays and functions ( User-defined
Functions User-defined.). Thus, you cannot have a variable and an
array with the same name in the same `awk' program.
Menu
* Array Intro Introduction to Arrays
* Reference to Elements How to examine one element of an array.
* Assigning Elements How to change an element of an array.
* Array Example Basic Example of an Array
* Scanning an Array A variation of the `for' statement. It
loops through the indices of an array's
existing elements.
* Delete The `delete' statement removes an element
from an array.
* Numeric Array Subscripts How to use numbers as subscripts in
`awk'.
* Uninitialized Subscripts Using Uninitialized variables as subscripts.
* Multi-dimensional Emulating multi-dimensional arrays in
`awk'.
* Multi-scanning Scanning multi-dimensional arrays.
* Array Efficiency Implementation-specific tips.
Info Catalog
(gawk) Built-in Variables
(gawk) Top
(gawk) Built-in
automatically generated byinfo2html