About 327,000 results
Open links in new tab
  1. Looping Statements | Shell Script - GeeksforGeeks

    Jan 3, 2024 · Practical examples illustrate the implementation of loops, including iterating over color values, creating infinite loops, and building an interactive loop for user input validation. …

  2. 9 Examples of for Loops in Linux Bash Scripts - How-To Geek

    All scripting and programming languages have some way of handling loops. A loop is a section of code that you want to have executed repeatedly. Rather than type the same set of instructions …

  3. Bash Scripting - For Loop - GeeksforGeeks

    Sep 15, 2023 · In this article, we are going to focus on the for loop in BASH scripts. Depending on the use case and the problem it is trying to automate, there are a couple of ways to use loops. …

  4. unix - Shell script "for" loop syntax - Stack Overflow

    We can iterate loop like as C programming. #!/bin/bash for ((i=1; i<=20; i=i+1)) do echo $i done

  5. Using For, While and Until Loops in Bash [Beginner's Guide]

    Learn for, while and until loops with examples in this chapter of Bash Beginner Series. Beware of infinite loops! The ability to loop is a very powerful feature of bash scripting. Loops have a …

  6. Using for loops and while loops in a shell script - The Shell Scripting ...

    Most languages have the concept of loops: If we want to repeat a task twenty times, we don't want to have to type in the code twenty times, with maybe a slight change each time. As a …

  7. Master Loop in Shell Script : for, while, and until (Beginner's Guide …

    Apr 23, 2025 · In Bash, there are three main types of loops: for loop – great for iterating over a list or range; while loop – runs as long as a condition is true; until loop – runs until a condition …

  8. 16 Examples of For Loop in Shell Script [Free Downloads]

    Mar 13, 2024 · The three types of loops in bash scripting are the ‘for loop’, ‘while loop’, and ‘until loop’. The ‘for loop’ is designed for iterating over a predefined sequence of values, while the …

  9. Bash For Loop Examples - nixCraft

    Jan 31, 2025 · Explains how to use a Bash for loop control flow statement on Linux / UNIX / *BSD / macOS bash shell with various programming examples.

  10. Bash For Loop - Linuxize

    Apr 14, 2024 · There are three basic loop constructs in Bash scripting: for loop, while loop , and until loop . In this article, we will cover the basics of the for loops in Bash and show you how to …

  11. Some results have been removed
Refresh