I'd like to get the value of specific key from Bash Array by the name I get from another string parameter
For example:
first_var="key_name01"
declare -A array
array[key_name01]="key_value 01"
array[key_name02]="key_value 02"
echo "The key name is: ${first_var} >>> Value: array[${first_var}]"
Is it possible and if so how can I do it?
Thanks!
array[${first_var}]->${array[${first_var}]}(you're not printing the value).