← All books
BASH, DISTILLED · SIX PARTS, 31 CHAPTERS

License to script
zero fluff

You're welcome.

31 chapters, six parts — terminal basics to scripts that survive contact with a real system. Shaken, not stirred, never retyped from a screenshot.

Bash, Distilled — Not Stirred cover

Somewhere right now, a script someone wrote at 2am is about to meet a filename with a space in it, and it is not going to survive. This book exists so yours does. Six parts carry you from "what is a terminal" through defensive scripting, real automation, and the testing and CI/CD practices that separate a script from a liability — on Linux, WSL, or macOS, with the platform differences flagged only where they actually matter.

Inside the book — all six parts
IGetting Orientedpure terminal literacy, zero assumptions
IIBash Foundationsthe shebang line, bash vs. sh vs. zsh
IIIData, Text & Expansiongrep, sed, awk, and expansion that clicks
IVScripts That Don't Breakdefensive scripting, real error handling
VReal-World Automationcron, scheduled jobs, things that run themselves
VIProfessional PracticeBats, ShellCheck, containers, CI/CD, security
✓ This book will
  • Start at "what is a terminal" and end at scripts that pass CI
  • Cover Linux, WSL, and macOS — with real differences flagged, not buried
  • Teach defensive scripting that survives filenames with spaces in them
  • Include a full quick-reference cheat sheet
✗ This book won't
  • Assume you already know what a shell is
  • Pretend rm -rf typos are a personality trait
  • Judge your variable naming. Much
  • Stir anything. This is a Bash book, not a bar
31
Chapters
VI
Parts
3
OSes covered
0
Stirred
$9.99
PDF · DRM-free
Free updates for life

More in the library: Ubuntu Server, Distilled for the server side, The Linux Testament for the whole of Linux, or the Distilled Bundle, which carries the Testament along for free.