When hacking up Bash scripts, there are often things such as logging or command-line argument parsing that:
- You need every time
- Come with a number of pitfalls you want to avoid
- Keep you from your actual work
Here’s an attempt to bundle those things in a generalized way so that they are reusable as-is in most scripts.
We call it “BASH3 Boilerplate” or b3bp for short.
Found on
https://willschenk.com/articles/2019/computer_setup_script/