This is my Bash script template or boilerplate if you like call it that way.
There are some comments around the code. If you feel anything is not clearly explained, please open an issue, or better, open a pull request of your improvement.
Feel free to use Issues for reporting or suggesting anything.
No license, placed in Public Domain, just do whatever you want with it.