I'm currently working on some bash script that's supposed to return numbers to some command. Basically, I got an array of possible variable name prefixes and I want to loop over it. While doing so I want to add a suffix and evaluate the result as a variable I set outside the loop.
Basic example:
DAYS=( "MON" "TUE" "WED" "THUR" "FRI" )   
MON_START=0800   
MON_END=1600   
TUE_START=0730   
TUE_END=1730   
....
Then the loop (not working):
for DAY in "${DAYS[@]}"; do   
    START="\${${DAY}_START}";    
    echo ${START};    
done
That, however doesn't work. It returns a "command not found" error.
Could you please help me?
Greetings, Phil.
