Among the scripts at
LinuxCommand.org I found the "new_script" script which can be called to create a new script skeleton/template interactively. After using it for a while, I wrote my own skeleton, based on the output of new_script.
I like it and all my newer scripts are based on it. It has one nifty feature: If you do your editing with Emacs, it supports the "outline-minor-mode" which creates a menu for jumping to functions defined in your script. I created the following screenshot:
View |
Download