See that, scottn? Only two posts and he's already on his way to being a good citizen of the forum...
Some folks aren't so quick to grasp the value of the generosity that is this site.
SDKC: Ignore the extraneous parts of this link's thread, such as color-coding, n/curses, etc, and you'll see pretty much the same thing as your target. Forget the candy options, abstract them into whatever and you've empiricized your task that much further...which, after all, is really all you're going to need to succeed. Boil it down and tackle it with the right set of tools.
https://www.unix.com/shell-programmin...nu-script.html
Hope this helps and good luck.