Bash Scripting Reference
Bash scripting fundamentals and advanced patterns. Streams, process substitution, arrays, functions.
Topics
| Topic | Description |
|---|---|
File descriptors, redirection, stderr handling |
|
Pipelines, process substitution, subshells |
|
Parameter expansion, defaults, substitution |
|
Test expressions, conditionals, comparisons |
|
for, while, until, loop control |
|
Indexed and associative arrays |
|
Function definition, scope, return values |
|
Escape sequences, colors, cursor control |
|
Wildcards, extended globbing, |
|
Comma lists, ranges, zero-padding, cartesian product |
|
|
|
jq patterns for system administration |
|
Reduce complexity, eliminate anti-patterns, safer scripts |
|
Heredoc, here-string, script generation, tee capture |
|
$?, set -euo pipefail, &&, ||, script safety |
|
trap EXIT, signal handling, temp file cleanup |
|
${var}, defaults, path ops, substitution, case conversion |
|
Interactive validation, confirm-before-act, safe delete patterns |
|
Four-stage /tmp/ → staging → scripts → ~/.local/bin/ progression |