ask-sheldon.com
Associative arrays (hash, dictionary) on bash | Bravehartk2's Blog
This is how to create associative arrays (hash, dictionary) on bash: [crayon-5ce2ba2e247d2606563300/] 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-5ce2ba2e247db365798725-i/] and how to access the values of the array (with [crayon-5ce2ba2e247dd338353397-i/]). “$1” is the array key to select the value. By the …