Minimal safe Bash script template
Bash scripts. Almost anyone needs to write one sooner or later. Almost no one says “yeah, I love writing them”. And that’s why almost everyone is putting low attention while writing them.
I won’t try to make you a Bash expert (since I’m not a one either), but I will show you a minimal template that will make your scripts safer. You don’t need to thank me, your future self will thank you.
Source: Minimal safe Bash script template, an article by Maciej Radzikowski.
Also of interest is the resulting Hacker News discussion.