Training material
Shell scripting hands-on
Bash from your first script to production
A toolbox for the notes app grows day by day – exit codes and strict mode, quoting, functions and arrays, log analysis with grep, sed and awk, JSON with curl and jq, backups with trap, flock and rotation, tests with bats, ShellCheck and shfmt in CI, signals, cron, systemd timers and ssh.
- Bash
- awk
- jq
- bats
- ShellCheck
- systemd
Training plan
- Foreword
- Day 0: The Training Ground
- Day 1: The First Script
- Day 2: Variables, Quoting, Parameter Expansion
- Day 3: Conditions and Loops
- Day 4: Functions and a Library
- Day 5: Arrays and Options
- Day 6: grep, cut, sort, uniq
- Day 7: sed and awk
- Day 8: curl and jq
- Day 9: find, xargs, mktemp
- Day 10: Error Handling, Locks, Backup
- Day 11: ShellCheck, shfmt, bats
- Day 12: Processes and Signals
- Day 13: cron and systemd Timers
- Day 14: Several Servers with ssh and rsync
- Day 15: Competition – Disaster Drills
- Appendix A: Cheat Sheet
- Appendix B: Final Exam