Advanced shell scripting with Bash (Wellington)

Monday, 17th Sep 2018
9am start
$760.00 per person (excl. GST)
Wellington

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 other 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.

Prerequisites

Experience reading and writing simple shell scripts, at least to the level of our
“Introduction to the Shell and Shell scripting” course - catalyst.net.nz/training/course/introduction-shell-and-shell-scripting-wellington

Return to training pages