home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Linux in a NutshellLinux in a NutshellSearch this book

13.8. Alphabetical Summary of Commands

The following alphabetical list of statements and functions includes all that are available in gawk in Linux.

for

for (item  in array)
     command

For each item in an associative array, execute command. Multiple commands must be put inside braces. Refer to each element of the array as array[item]. Elements of gawk arrays are stored in an order that enables access of any element in essentially equivalent time. This order may appear to be indiscriminate; if the output is desired in sorted order, you must pipe it through the sort command.



Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.