I want to provide a menu in a shell script that offers a selection of nodes to connect to and I'm struggling!
The selection of nodes is being constantly updated, so I want the menu to reference a hosts file as opposed to updating the shell script constantly. I can use select to create such a dynamic menu, but I am at a loss as to how to incorporate case into this dynamic scenario.
I don't actually need to execute a function or anything like that per selection, I just want to be able to feed the user's choice in to a variable. At some point I will also need to be able to make multiple selections and this is another thing I'm at a loss on how to do!
Any help is very greatly appreciated!