January 2001
Intermediate to advanced
480 pages
7h 22m
English
One-dimensional arrays are supported by the Korn shell. On most systems, arrays can have a maximum of 512 elements. Array subscripts start at 0 and go up to 511. Any variable can become an array by simply referring to it with a subscript.
| variable[0]=value variable[1]=value... variable[n]=value
set –A variable value0 value1... valuen typeset variable[0]=value variable[1]=value... variable[n]=value | assign values to array variable elements |
| set +A variable value0 value1... valuen | reassign values to array variable elements |
| typeset –attributes variable[0]=value variable[1]=value... variable[n]=value | assign attributes and values to array variable elements |
| typeset –attributes variable | assign attributes to ... |
Read now
Unlock full access