Advanced shell scripting with Bash (Wellington)

Wednesday, 8th Sep 2021
9am start
$760.00 per person (excl. GST)

Shell scripts are a cornerstone in modern software systems. They also break easily and in strange ways, like when August comes around or a filename starts with a hyphen. This course covers common pitfalls and use cases, enabling you to efficiently and effectively understand and modify complex shell scripts.

This course is based on Bash, but most of the course material is applicable to POSIX shells.

Course outline
  • Understanding complex commands from the outside in
  • Redirects
  • Pipes and subshells
  • Dealing with binary data
  • Reading, quoting, escaping and splitting strings
  • Variables and arguments
  • Conditionals
  • Arithmetic
  • Exit codes
  • Defensive coding
  • Traps
  • Cleaning up state
  • Debugging flags and tools
  • And more…

Note: These are the topics normally covered but might alter slightly depending on the needs of the trainees.

Target audience

Developers and sysadmins who need to maintain complex shell scripts.


Experience reading and writing simple shell scripts, at least to the level of our Introduction to the Shell and Shell scripting course

Return to training pages