# 11. 循环与分支

> 奥赛罗夫人，您为什么把这句话说了又说呢？
>
> —— 《奥赛罗》，莎士比亚

### 本章目录

* [11.1 循环](https://linuxstory.gitbook.io/advanced-bash-scripting-guide-in-chinese/zheng-wen/part3/11_loops_and_branches/11_1_loops)
* [11.2 嵌套循环](https://linuxstory.gitbook.io/advanced-bash-scripting-guide-in-chinese/zheng-wen/part3/11_loops_and_branches/11_2_nested_loops)
* [11.3 循环控制](https://linuxstory.gitbook.io/advanced-bash-scripting-guide-in-chinese/zheng-wen/part3/11_loops_and_branches/11_3_loop_control)
* [11.4 测试与分支](https://linuxstory.gitbook.io/advanced-bash-scripting-guide-in-chinese/zheng-wen/part3/11_loops_and_branches/11_4_testing_and_branching)

对代码块的处理是结构化和构建 shell 脚本的关键。循环与分支结构恰好提供了这样一种对代码块处理的工具。
