NAME
notes
4 notes on pipes, awk and sed, systemd, and safe shell scripts.
DESCRIPTION
- Safer shell scripts, strict mode and quoting
- What set -euo pipefail actually does, where it stays silent, how to quote properly, and a trap that cleans up after itself.
- systemd timers or cron
- A nightly backup written both ways, the units and the commands to manage them, and where each one is the better tool.
- Five awk and sed one-liners, taken apart
- Five GNU awk and sed one-liners worth memorising, each split into its tokens, plus the sed -i difference on macOS.
- Build a pipeline one stage at a time
- How to grow a shell pipeline stage by stage, with a web server log as the example, and why uniq needs sort first.