82,600 results
Open links in new tab
  1. 9 Examples of for Loops in Linux Bash Scripts - How-To Geek

    Oct 30, 2023 · The for Loop All scripting and programming languages have some way of handling loops. A loop is a section of code …

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

    Sep 18, 2009 · Shell script "for" loop syntax Ask Question Asked 17 years, 2 months ago Modified 11 months ago

  3. Bash For Loop: Syntax and Examples - Linuxize

    Sep 9, 2026 · A complete guide to the Bash for loop: standard syntax, C-style loops, arrays, ranges, break and continue, and real …

  4. Looping Statements | Shell Script - GeeksforGeeks

    Apr 28, 2026 · Output: Note: Shell scripting is a case-sensitive language, which means proper syntax has to be followed while writing …

  5. Bash Scripting - For Loop - GeeksforGeeks

    Sep 15, 2023 · We can use loops and conditional statements in BASH scripts to perform some repetitive and tricky problems in a …

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

    Loops - A Bourne Shell Programming / Scripting Tutorial for learning about using the Unix shell.

  7. Bash Loops - W3Schools

    This section covers the use of loops in Bash scripting, including for, while, and until loops.

  8. How do I write a 'for' loop in Bash? - Stack Overflow

    Sep 8, 2008 · Here's an example that can also work in older shells, while still being efficient for large counts: ... But good luck doing …

  9. Bash For Loop: A Comprehensive Guide to Iteration in Shell Scripting

    Jan 16, 2026 · In the world of shell scripting, few constructs are as fundamental and versatile as the **`for` loop**. Whether you’re …

  10. Bash for Loop in Shell Scripts: Syntax and Split Filenames

    Sep 16, 2026 · Counting loops three ways Counting is the second reason people reach for a for loop, and bash offers three ways to …