Shell Scripting Course

A practical, hands-on shell scripting course — from your first script to production-ready Docker entrypoints. Every lesson includes copy-pasteable examples and real-world use cases.


Course Overview

# Lesson Level Topics
01 Your First Script Beginner Shebang, permissions, execution, strict mode
02 Variables & Data Types Beginner Variables, quoting, environment, special vars
03 Conditionals & Logic Beginner if/else, test operators, case, file checks
04 Loops & Iteration Beginner for, while, until, break, continue
05 Functions & Modularity Intermediate Functions, return values, local scope, sourcing
06 Arrays & Data Structures Intermediate Indexed arrays, associative arrays, iteration
07 Text Processing in Scripts Intermediate grep, sed, awk, cut inside scripts
08 Error Handling & Debugging Intermediate Exit codes, trap, set flags, debugging
09 Input, Arguments & Options Intermediate read, getopts, argument parsing
10 Docker Entrypoints & Init Scripts Advanced exec, gosu, wait-for, health checks, signal handling
11 Real-World Scripts Collection Advanced Backup, deploy, log rotation, monitoring, CI/CD

Prerequisites

  • Basic Linux terminal knowledge (Lessons 1-6 of the Linux Course)
  • A text editor (nano or vim)
  • A terminal (Linux, WSL, or macOS)

How to Use This Course

  1. Read each lesson in order — concepts build on each other
  2. Type the examples yourself — don't just read, practice
  3. Run every script — see what happens, then modify it
  4. Do the exercises — they reinforce key concepts
  5. Build your own scripts — apply what you learn to real tasks