If you want to perform a task against each item in a set, for loops are a good way to do that. But how do you set these up? How can you leverage looping in a Bash script? What is the meaning of life? Well, LearnLinuxTV can't help you figure out that last point, but with this video you'll absolutely learn all about for loops!
*🎓 BRAND NEW UDEMY COURSES AVAILABLE!*
Check out my new courses on Udemy and take your learning even further!
• Getting Started with Ansible: Automation Made Easy ➜ [ Ссылка ]
• LPI Linux Essentials Complete Course & Workshop ➜ [ Ссылка ]
*🐧 SUPPORT LINUX LEARNING!*
• Grab some Linux swag ➜ [ Ссылка ]
• Become a Channel Member ➜ [ Ссылка ]
• Become a Patron ➜ [ Ссылка ]
• 5% discount on LPI exam vouchers ➜ [ Ссылка ]
• Check out my latest book ➜ [ Ссылка ]
• Grab an awesome Pi-powered KVM ➜ [ Ссылка ]
• Jay's Gear - Server, Computer and Video Production Stuff ➜ [ Ссылка ]
_Note: Royalties and/or commission is earned from each of the above links_
*⏰ TIME CODES*
00:00 - Intro
00:42 - What are "For Loops" in Bash?
01:14 - An example of utilizing a For Loop within a Bash Script
05:56 - An example of a Bash Script with a For Loop that's actually useful!
*OTHER BASH SCRIPTING SERIES EPISODES*
- Class 01 ➜ Introduction: [ Ссылка ]
- Class 02 ➜ Hello World: [ Ссылка ]
- Class 03 ➜ Variables: [ Ссылка ]
- Class 04 ➜ Math Functions: [ Ссылка ]
- Class 05 ➜ If Statements: [ Ссылка ]
- Class 06 ➜ Exit Codes: [ Ссылка ]
- Class 07 ➜ While Loops: [ Ссылка ]
- Class 08 ➜ Universal Update Script: [ Ссылка ]
- Class 09 ➜ For Loops: [ Ссылка ]
- Class 10 ➜ Where To Store Your Scripts: [ Ссылка ]
- Class 11 ➜ Data Streams: [ Ссылка ]
- Class 12 ➜ Functions: [ Ссылка ]
- Class 13 ➜ Case Statements: [ Ссылка ]
- Class 14 ➜ Scheduling Jobs (Part 1): [ Ссылка ]
- Class 15 ➜ Scheduling Jobs (Part 2): [ Ссылка ]
- Class 16 ➜ Arguments: [ Ссылка ]
- Class 17 ➜ Building a Backup Script: [ Ссылка ]
- Class 18 ➜ Closing: [ Ссылка ] FULL LINUX COURSES FROM LEARN LINUX TV*
• Linux Crash Course ➜ [ Ссылка ]
• Learn tmux ➜ [ Ссылка ]
• Learn vim ➜ [ Ссылка ]
• Bash Scripting Series ➜ [ Ссылка ]
• Proxmox VE ➜ [ Ссылка ]
• Getting Started with Ansible (Udemy) ➜ [ Ссылка ]
• LPI Linux Essentials Workshop (Udemy) ➜ [ Ссылка ]
*🌐 LEARN LINUX TV ON THE WEB*
• Main site ➜ [ Ссылка ]
• Community ➜ [ Ссылка ]
• Official Github Account ➜ [ Ссылка ]
• Enterprise Linux Security Podcast ➜ [ Ссылка ]
• The Homelab Show Podcast ➜ [ Ссылка ]
• Jay on Udemy ➜ [ Ссылка ]
• Jay on Twitter ➜ [ Ссылка ]
• Content Ethics ➜ [ Ссылка ]
• Request Assistance ➜ [ Ссылка ]
*⚠️ DISCLAIMER*
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. Always make sure you have written permission before working with any infrastructure and that you are compliant with all company rules, change control procedures, and local laws.
#Linux #linuxserver #homelab
![](https://i.ytimg.com/vi/HvzI7c3eK5k/maxresdefault.jpg)