I have a configuration file where I am exporting variables that can enable and run certain functions in my bash shell script. I was wondering the best way to accomplish this. My thought was just to use a for loop and do a simple if else - not sure if there is a better way. Any suggestions?
Example exported variables in config (I don't have to do it like the following but this was what I was thinking):
data_error_check_run=TRUE check_ctl_dat_exists_run=FALSE check_ctl_dat_format_run=TRUE ctl_dat_count_check_run=TRUE mask_field_run=FALSE custom_target_file_run=TRUE
Functions inside script to run:
data_error_check check_ctl_dat_exists check_ctl_dat_format ctl_dat_count_check mask_field $MASK_FILE custom_target_file $CUSTOM_CONFIG