Skip to main content
Welcome to the Advanced Bash Scripting course on KodeKloud. I’m Juan Carlos Martinez, and I’ll guide you through the techniques and best practices that will elevate your Bash scripting skills.

What You’ll Learn

Why Practice Matters

“Practice is the hardest part of learning, and training is the essence of transformation.”
– Ann Boscum
Typing and running each example yourself is the best way to internalize these concepts.

Key Concepts Overview

  1. Interactive vs Non-Interactive Shells
    How shells behave when reading from a terminal versus a script.
  2. Shebang Line (#!)
    Ensuring your script runs with the intended shell interpreter.
  3. Streams & Redirection
    Redirecting standard output (stdout) and standard error (stderr) to files or other commands.
  4. Control Structures
    Using if, case, for, while, and until for flow control.
  5. Expansions
    • Parameter expansion
    • Command substitution
    • Arithmetic expansion
  6. Globbing & Pattern Matching
    Matching file names with wildcards (*, ?, []).
  7. Special Variables
    Exploring shell-provided variables like $?, $$, and $# for status codes, process IDs, and argument counts.
  8. Arrays
    Indexed and associative arrays for storing lists and key/value pairs.
  9. Text Processing with awk & sed
    Powerful one-liners and scripts for parsing and transforming text.

Interactive Labs and Challenges

Throughout the course, you’ll encounter scenarios where you must:
  • Write scripts that validate user input.
  • Process log files with awk and sed.
  • Automate system checks and reporting.
Always test your scripts in a safe environment before deploying them in production!

Further Reading & References

Thank you for choosing this course. Let’s get started on your journey to mastering Advanced Bash Scripting!

Watch Video