How can I create a hashmap in a linux shell?

Possible duplicate:
How to define hash tables in bash?

I want to create a hash map in a linux shell script that associates string keys with string values. Is there an easy way to do this?

+3
source share
2 answers

I think you referred to this question: How to define hash tables in Bash? that is useful .:-)

+2
source

The environment itself is a hash map that associates string keys with string values.

myvar1=myvalue1
myvar2=myvalue2

and etc.

Or do you need something else?

+5
source

Source: https://habr.com/ru/post/1793539/


All Articles