1 1 3.2.4 Compound Commands 1 ----------------------- 1
1 · Looping Constructs Shell commands for iterative action. · Conditional Constructs Shell commands for conditional execution. · Command Grouping Ways to group commands. 1 1 Compound commands are the shell programming constructs. Each construct 1 begins with a reserved word or control operator and is terminated by a 1 Redirections::) associated with a compound command apply to all commands 1 within that compound command unless explicitly overridden. 1 1 In most cases a list of commands in a compound command's description 1 may be separated from the rest of the command by one or more newlines, 1 and may be followed by a newline in place of a semicolon. 1 1 Bash provides looping constructs, conditional commands, and 1 mechanisms to group commands and execute them as a unit. 1