I am trying to write a script that will contain multiple commands which the user will be prompted to run up front, and run a dynamic set of those commands based on user input
So, lets say for example I setup functions for the commands that I need to run
command1 () { some_command; }
command2 () { some_command; }
command3 () { some_command; }
command4 () { some_command; }
Followed by a series of prompts
Do you want to run command1?
Do you want to run command2?
Do you want to run command3?
Do you want to run command4?
For this example, assume Y, N, Y, Y so I need to run command1, command3, command4 I hope that gets the point across.
Any assistance would be greatly appreciated.