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


for

for ( item in array )
    statement

Special loop designed for reading associative arrays. For each element of the array, the statement is executed; the element can be referenced by array [item ]. A series of statements must be put within braces.


Previous: Reference: for UNIX in a Nutshell: System V Edition Next: Reference: function
Reference: for Book Index Reference: function

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System