---

How to Use for/while/until Loop in Bash

Undoubtedly the most useful feature of bash scripting is loop control. In any imperative programming language like bash, loop statements are commonly used along with conditional statements to perform repetitive tasks. In case of bash, three different types of loop statements are available: for, while and until. This tutorial demonstrates how to use for, while and until loops in bash using detailed examples.