Here is a template: - https://sharats.me/posts/shell-script-best-practices/
Here is a template: