Topic

Shell scripting

Bash scripts that check their input, loop over data, use functions and arrays, and survive real failures.

  • 3 hands-on labs
  • Beginner to advanced
  • DevOps plan

Opens with the DevOps plan. Cloud, AI, Data and Teams include it too.

Labs

3 labs in order. Beginner to advanced.

Each lab is a real machine built only for you, with a guide and checks that read what you actually did.

  1. Beginner

    Your first shell scripts

    Turn a morning chore into a script: check the arguments, loop over a CSV file, count with variables, decide with if, build a pipeline and take a threshold as an argument with a default.

  2. Intermediate

    Functions, arrays and versions in Bash

    Write a release housekeeping script with functions, parameter expansion, indexed and associative arrays and version aware sorting, that checks checksums and stays correct however often it runs.

  3. Advanced

    Robust shell scripts

    Take a fragile script that reports success while it fails and make it production grade: ShellCheck clean, strict mode, options, a lock, a cleanup trap, checksums, retention, a dry run and honest exit statuses.

Learning paths

On these learning paths.