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


for

for ( init-expr ; test-expr ; incr-expr )
    statement

C-style looping construct. init-expr assigns the initial value of a counter variable. test-expr is a relational expression that is evaluated each time before executing the statement . When test-expr is false, the loop is exited. incr-expr increments the counter variable after each pass. All the expressions are optional. A missing test-expr is considered to be true. A series of statements must be put within braces.


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

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