I am trying to declare a hash map in shell script containing a file path as key and some variable as value. Something like this
fileVarMap=( ["Dir1/file1.txt"]="myVar1" ["Dir2/file2.txt"]="myVar2" )
I am getting an Error called...syntax error: invalid arithmetic operator
How can this be achieved?
Thanks in Advance.