Nested loops means loops inside loops. Check out the following example:
#!/bin/bash for (( v1 = 1; v1 <= 3; v1++ )) do echo "First loop $v1:" for (( v2 = 1; v2 <= 3; v2++ )) do echo " Second loop: $v2" done done
![](https://static.packt-cdn.com/products/9781788990554/graphics/assets/16709454-c84c-41f8-8c8a-99ed1cea62f3.png)
The first loop hits first, then the second loop, and this happens three times.