Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
How To Write Bash Scripts In Linux - Complete Guide (Part 13 - Case Statements)
Play lesson

Learn Something New! - How To Write Bash Scripts In Linux - Complete Guide (Part 13 - Case Statements)

5.0 (3)
25 learners

What you'll learn

This course includes

  • 135.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Learn how to simplify conditional logic in your Bash scripts with case statements! In this episode of LearnLinuxTV’s complete Bash scripting course, you’ll explore how case statements can streamline decision-making in your scripts. You’ll see how to match specific values or patterns and execute commands based on different conditions—making your scripts more powerful and easier to manage. *📖 Switch to Linux with my latest book!* Linux is one of the best decisions you can make for your computer — but knowing where to start is the hard part. This guide walks you through everything: choosing a distribution, installing it, and using it confidently every day. It'll be released very soon! 📌 *Join the announcement list here ➜ https://leanpub.com/switch-to-linux* *🔥 Top Recommendations* • Get $100 Credit to Practice on Akamai (Linode) ➜ https://learnlinux.link/linode • Linux Commands Cheat Sheet ➜ https://learnlinux.link/linux-commands • 30% Off Linux Foundation Certifications (Use code "LEARNLINUXTV") ➜ https://learnlinux.link/lf • Professional tutoring from yours truly ➜ https://learnlinux.link/tutor-me *🛠️ SysAdmin Tools* • Monitor your Infrastructure like a Pro with Netdata ➜ https://learnlinux.link/netdata • Check out TinyPilot, a Pi-Based Remote Access Solution ➜ https://learnlinux.link/tinypilot • Tips for Switching to Linux (ebook) ➜ https://learnlinux.link/linux-desktop-tips *🛡️ Privacy & Privacy* • Safeguard your Internet activity with Proton VPN (70% off) ➜ https://go.getproton.me/aff_c?offer_id=26&aff_id=16836 • Get Proton end-to-end Encrypted Email for $1/month ➜ https://go.getproton.me/aff_c?offer_id=7&aff_id=16836 *❤️ Support the Channel* • Enjoyed the video? Your support keeps this channel independent! • Become a Channel Member (Ad-Free & Early Access) ➜ https://learnlinux.link/join • Support on Patreon ➜ https://learnlinux.link/patron *🛍️ Featured Merch* • "apt install coffee" T-Shirt (My personal favorite) ➜ https://learnlinux.link/apt-install-coffee • Proxmox T-Shirt ➜ https://learnlinux.link/proxmox-shirt • Explore the Full Shop ➜ https://merch.learnlinux.tv *🕐 Time Codes* 00:00 - Intro 00:27 - A quick example of a Case Statement in Bash 05:58 - Taking our case statement script for a test run 08:08 - Introducing a while loop into our script *OTHER BASH SCRIPTING SERIES EPISODES* - Class 01 ➜ Introduction: https://linux.video/bash1 - Class 02 ➜ Hello World: https://linux.video/bash2 - Class 03 ➜ Variables: https://linux.video/bash3 - Class 04 ➜ Math Functions: https://linux.video/bash4 - Class 05 ➜ If Statements: https://linux.video/bash5 - Class 06 ➜ Exit Codes: https://linux.video/bash6 - Class 07 ➜ While Loops: https://linux.video/bash7 - Class 08 ➜ Universal Update Script: https://linux.video/bash8 - Class 09 ➜ For Loops: https://linux.video/bash9 - Class 10 ➜ Where To Store Your Scripts: https://linux.video/bash10 - Class 11 ➜ Data Streams: https://linux.video/bash11 - Class 12 ➜ Functions: https://linux.video/bash12 - Class 13 ➜ Case Statements: https://linux.video/bash13 - Class 14 ➜ Scheduling Jobs (Part 1): https://linux.video/bash14 - Class 15 ➜ Scheduling Jobs (Part 2): https://linux.video/bash15 - Class 16 ➜ Arguments: https://linux.video/bash16 - Class 17 ➜ Building a Backup Script: https://linux.video/bash17 - Class 18 ➜ Closing: https://linux.video/bash18 *🎓 More About Learn Linux TV* • Main site ➜ https://www.learnlinux.tv • Community Forums ➜ https://community.learnlinux.tv • Github Account ➜ https://github.com/LearnLinuxTV • Content Ethics ➜ https://www.learnlinux.tv/content-ethics • Request Paid Assistance ➜ https://www.learnlinux.tv/request-assistance _Note: Some links mentioned here are affiliate links. If you purchase through them, it helps support Learn Linux TV at no additional cost to you._ ⚠️ Use Content Responsibly Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with infrastructure. #tech #learnlinux #linuxcommands

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere