Shell & PowerShell
Bash/Zsh scripting, pipelines, text tools (awk/sed/jq), plus Windows PowerShell essentials.
Chapter 1: How Shells Actually Work (Fork, Exec & PATH)
Understanding what happens the millisecond you press Enter: tokenization, builtins vs. external binaries, PATH lookup, and fork/exec.
Chapter 2: File Descriptors, Redirection & Pipelines
Mastering stdin (0), stdout (1), stderr (2), custom FDs, redirection order traps, heredocs, and streaming pipelines.
Chapter 3: Quoting, Expansion, Globbing & Word Splitting
Defeating the #1 source of shell bugs forever: spaces in filenames, single vs. double quotes, parameter expansion, brace expansion, and safe globbing.
Chapter 4: Variables, Arrays, Exit Codes & Strict Mode
Building scripts that don't silently corrupt data: environment inheritance, Bash arrays, `$?`, and `set -euo pipefail` (plus its subtle traps).
Chapter 5: Control Flow, Functions, Traps & Clean Error Handling
Mastering `[[ ]]` vs `[ ]`, `case` patterns, safe `while read` loops, clean functions with `local`, and `trap` cleanup on exit.
Chapter 6: Text Processing I — `grep`, Regex & `find` + `xargs`
Searching millions of lines and files in milliseconds: extended regexes, ripgrep, safe `find -print0 | xargs -0`, and parallel batch execution.
Chapter 7: Text Processing II — `sed` & `awk` Power Patterns
Mastering stream editing with `sed` (delimiters, address ranges, BSD vs GNU `-i`) and columnar data analysis with `awk` (records, fields, associative counters, BEGIN/END).
Chapter 8: Structured Data in the Shell (`jq`, JSON & API Pipelines)
Treating APIs as first-class shell citizens: `jq` filters, `select()`, object reshaping, `@tsv`/`@csv` export, streaming NDJSON, and safe `curl | jq` automation.
Chapter 9: Job Control, Subshells, Process Substitution & `tmux`
Controlling concurrency in the shell: foreground/background jobs, signals, subshell isolation traps, `<(...)` FIFOs, `wait`, and persistent `tmux` sessions.
Chapter 10: Zsh Mastery (Globs, Modifiers, Completion & Hooks)
Going way beyond Bash interactively: Zsh's no-word-splitting superpower, glob qualifiers (`*(.Om[1,5])`), history modifiers, `compinit`, and `precmd` hooks.
Chapter 11: PowerShell Fundamentals — Objects, Not Text!
The paradigm shift that makes PowerShell shine on Windows, Linux, and macOS: Verb-Noun cmdlets, .NET objects on the pipeline, `Get-Help`, `Get-Member`, and PSDrives.
Chapter 12: PowerShell Pipelines, Filtering & Data Conversion
Mastering the PowerShell object pipeline: `Where-Object`, `Select-Object`, `ForEach-Object`, `Group-Object`, `Measure-Object`, Format-Right rule, and JSON/CSV/REST cmdlets.
Chapter 13: PowerShell Scripting — Functions, Error Handling & Remoting
Writing production-grade PowerShell tools: `[CmdletBinding()]`, validated `param()` blocks, terminating vs. non-terminating errors, `try/catch/finally`, modules, and SSH/WinRM remoting.
Chapter 14: Shell Security — Injection Defense, Secrets & Hardening
Writing battle-hardened shell automation: eliminating command injection and `eval` bugs, protecting credentials from `ps` and history, safe temp files, `chmod`/`umask`, and audit checklists.