I am trying to create a dictionary of key value pair using Bash script. I am trying using this logic:
declare -d dictionary
defaults write "$dictionary" key -string "$value"
...where $dictionary
is a variable, but this is not working.
Is there a way to create key-value pairs in Bash script?