Hands-on

Projects

Builds

About These Projects

Watching lessons only gets you so far. These five builds take the ideas from the modules and make you apply them: you will write a script that adapts to different systems, one that takes user input safely, one that automates a regular chore, one that pulls data out of files, and a small task runner that ties your own commands together.

Each project follows along with a video walkthrough. Work through them in order, or jump to the one that matches the module you just finished. Pause often and type the script yourself rather than copying it.

Projects

5 builds
01

Build a Universal Update Script

Write one script that updates a system whatever Linux distribution it runs, using conditions and the right package manager commands for each.

02

Build a Project Rename Script

Create a script that validates its arguments, prints messages with heredocs, asks yes or no questions, and does a recursive find and replace across a project.

03

Build a Script to Keep Example Apps Up to Date

Automate a chore you would otherwise repeat by hand: a script that checks several projects for dependency updates with a single command.

04

Build a Script to Get an MP3’s Details

Find the latest episode file, read its size and duration with ffmpeg and a regular expression, and write the values back to the file, with a dry run mode.

05

Build a Task Runner to Replace a Makefile

Turn shell functions into commands, pass arguments through with "$@", group commands with namespaces, hide private helpers and generate a help menu.