Bash associative array examples

Quick reference of things I discovered about how to use associative arrays in bash. Note: bash version 4 only. Play my Android game Rabbit Escape! Update: see also Bash Arrays. Basics $ declare -A MYMAP # Create an associative array $ MYMAP[foo]=bar # Put a value into an associative array $ echo ${MYMAP[foo]} # Get … Continue reading Bash associative array examples