Home / Guides / Self-Hosting & Infra
Bash Cookbook: Parameter Expansion, Arrays, Associative Arrays, Arithmetic Traps and getopts
Executed in bash: ${var##*/}, %, %%, //, ^^, substring, :- versus - versus :=, quoted versus unquoted array loops, negative indexes, associative arrays, read -ra splitting, 010 as octal, -7/2, BASH_REMATCH, local scope leaks and getopts error handling.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →