I'm very new to programming on Ubuntu. And I'm trying to do a simple bash script.
I have a select menu working but I want the choices made in that to go into a number of if statements, corresponding to the choices made.
For example, here's the pseudo code:
Choose from the following a) b) c) a selected if a is selected then run this script fi if b selected then run this script fi if c selected then run this script
How do I get the choice passed on into the relevant if statement?
All of this has to be run from the one script. This is probably very simple but I'm new to this and struggling my way through it.