ask-sheldon.com
Associative arrays (hash, dictionary) on bash | Bravehartk2's Blog
This is how to create associative arrays (hash, dictionary) on bash: [crayon-5c43dc951199f750555704/] This script was made to purge the varnish on one of my clusters. But the important stuff is the declaration of the associative array with [crayon-5c43dc95119ad390619374-i/] and how to access the values of the array (with [crayon-5c43dc95119b0310792924-i/]). “$1” is the array key to select the value. By the …