Zsh Shell Tutorial 10: Loops — for, while, until & File Processing

12views
00
9:25
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Learn all the loop types in Zsh! In this lesson, we cover for loops (list iteration, brace expansion, and C-style), while and until loops, break and continue for flow control, and file processing with glob patterns and while-read. 🕐 Timestamps: 0:00 - Introduction 0:25 - For Loop Explained 0:55 - For Loop Demo 2:11 - While & Until Explained 2:39 - While & Until Demo 3:56 - Break & Continue Explained 4:26 - Break & Continue Demo 5:48 - File Processing Explained 6:18 - File Processing Demo 7:53 - Recap 8:25 - End 📚 What you will learn: • for loops with lists, ranges, and C-style syntax • while loops that repeat while a condition is true • until loops that repeat until a condition becomes true • break to exit a loop early • continue to skip to the next iteration • Glob patterns to process files matching a pattern • while-read to process files line by line 💻 Source code: https://github.com/GoCelesteAI/zsh_loops 🔗 Full playlist: Zsh Shell Tutorial Series #zsh #shell #terminal #loops #scripting #tutorial #programming #linux #macos
Back to tutorials

Duration

9:25

Published

February 14, 2026

Added to Codegiz

March 15, 2026

Open in YouTube