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

    Oct 30, 2023 · The versatile Bash for loop does much more than loop around a set number of times. We describe its many variants so you can use them successfully in your own Linux scripts.

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

    Ideally, such a shell invoked as sh would only support those features in the POSIX standard, but by default let some of their extra features through. The C-style for-loop is not a POSIX feature, but may …

  3. Looping Statements | Shell Script - GeeksforGeeks

    Nov 17, 2025 · Loops are a fundamental part of programming, and shell scripting is no exception. They allow you to automate repetitive tasks by running a block of code multiple times. You will use loops …

  4. 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.

  5. Bash For Loop: Syntax and Examples - Linuxize

    Dec 1, 2025 · This guide focuses on the for loop in Bash, including its syntax variations, nesting, flow-control statements like break and continue, and practical examples.

  6. Bash Loops - W3Schools

    This section covers the use of loops in Bash scripting, including for, while, and until loops. For loops allow you to iterate over a list of items or a range of numbers. They are useful for repeating tasks a …

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

    Mar 13, 2024 · In this article, you will get to learn all about the for loop in Shell Script with the help of practical examples. Similar to all the programming languages, the for loop in Shell Scripting also …

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

    Dec 8, 2025 · This guide will take you from the basics of Bash `for` loops to advanced techniques, with practical examples, best practices, and troubleshooting tips. By the end, you’ll be equipped to write …

  9. Bash for Loop Examples: A Comprehensive Guide

    Nov 7, 2025 · This blog will take you from the basics of `for` loop syntax to advanced use cases, with **detailed examples** and explanations. By the end, you’ll be equipped to write robust loops for your …

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

    Aug 18, 2025 · Loops are essential for any scripting language. Learn for, while and until loops with examples in this chapter of Bash Beginner Series.