How to use for/while/until loop in bash

Posted by bob on Feb 14, 2021 12:20 PM EST
Xmodulo; By Dan Nanni
Mail this story
Print this story

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.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Developer, Linux

« Return to the newswire homepage

Subject Topic Starter Replies Views Last Post
Don't overlook Bash for text processing and file handling Steven_Rosenber 3 1,584 Feb 17, 2021 10:20 AM

You cannot post until you login.