Translations of this page:
Welcome to the homepage of Paul Herger, Unix systems engineer in Vienna, Austria.
|Fast Way to Read a File
||Did you ever try to read a potentially large text file into an array using kornshell 93?
The conservative approach
The obvious way would be to read the file line by line in a while loop like this
typeset -i i=0
while read line
|Nested associative Arrays
||This articel describes one of the lesser known features of the kornshell 93, nested associative Arrays.
Let's say, you want to represent the contents of an INI-style file as a shell variable. The first index should hold the section names and the second one the key names.