I spend literally hours in writing the same case blocks over and over again. Then back in 2008 I started in writing Inkabell (Ink like paint and the 'kabell' came from tinkerbell, the helpfull fairy from peter pan). It was clumsy piece of lines but it helped much.
This is a menusystem like ncurses or dialog but entirely written in 'bash'. You can copy and paste it together if you want it even smaller.
At the moment the menu is very static. Im working currently on a more easier to use...