← The Forge
Fundamentals Lab · Bash 2

Advanced Bash

Piping, then scripting. Every exercise here runs against real files in prereq-scripts/ — a small three-script pipeline that turns minutes into a plain-English sentence, plus a Python API script. Real working files, not toy examples: you'll inspect them first, then run them.
Quick Refresher

Same terminal as Lesson 1.

  • Click inside the black box to focus it before typing — a blinking cursor means it's ready.
  • The prompt student@aisem:~/prereq-scripts$ just shows where you are. Type only what comes after it.
  • This lesson chains commands together with | (pipe) and > (redirect) — new punctuation, same terminal.
Done

Pipes move data. Scripts remember decisions.

A pipe is one line, gone the moment you press Enter. A script is the same instinct saved to disk, so someone else — or you, tomorrow — can run it without remembering how. Next lab: the Python primer, same try-first loop, a different language.
1 / 1
ends with a "mark complete" step