Artikel
- 01 Skript-Grundlagen Vom ersten Shebang bis zum robusten Skript-Header — alles, was ein Bash-Skript tragfähig macht
- 02 Bedingungen if/elif/else, test, [ ], [[ ]], Vergleichsoperatoren und Datei-Tests in Bash
- 03 Schleifen Schleifen in Bash: for, while, until, select, break und continue
- 04 case Pattern-Matching in Bash: case mit Glob-Mustern, Multi-Pattern und Fall-Through erklärt
- 05 Funktionen Funktionen in Bash: Definition, Parameter, Rückgabewerte, Scope und local
- 06 Parameter Skript- und Funktions-Parameter in Bash sauber verarbeiten
- 07 Arrays Indizierte und assoziative Arrays in Bash mit Iteration, Slicing und Praxis-Patterns
- 08 String-Manipulation Strings in Bash ohne sed und cut zerlegen, ersetzen und prüfen
- 09 Arithmetik Rechnen in Bash — Compound-Command, Expansion, Operatoren und Float-Workarounds mit bc und awk
- 10 Exit-Codes Konvention, $?, exit N, Pipe-Verhalten, set -e und pipefail
- 11 Fehlerbehandlung set -e, set -u, pipefail, trap und Cleanup-Patterns für robuste Bash-Skripte
- 12 Heredocs Heredocs, Herestrings und ihre Tücken — von Konfigfiles bis read-Idiom
- 13 Prozess-Substitution Befehls-Output als Pseudo-Datei — diff, tee an mehrere Filter, while-Loops ohne Subshell
- 14 Debugging Bash-Skripte sauber debuggen — von xtrace und Syntax-Check bis zu PS4 und strace
- 15 ShellCheck Statische Analyse für Bash — was ShellCheck findet, wie man ihn integriert und konfiguriert