Shell Scripting

Lab

Shell Scripting

Bash as a language — quoting, control flow, functions, arguments, and safe, reusable scripts.

Checking session…

16 lessons

  1. 1Your first script
  2. 2Variables and quoting
  3. 3Command substitution and arithmetic
  4. 4Tests and conditionals
  5. 5Loops and case
  6. 6Project: The Coin-Changer
  7. 7Exit codes and chaining
  8. 8Arguments and input
  9. 9Functions in scripts
  10. 10Project: The Caravan Dispatcher
  11. 11Here-docs, temp files and paths
  12. 12Defensive scripting
  13. 13Project: The Scribe's Vault
  14. 14Parsing flags with getopts
  15. 15shellcheck
  16. 16Project: The Well Warden