declare -A map

Category: Shell & Bash

declare -A map

Declare an associative array (hash map)

Creates an associative array (like a dictionary/hash map) where keys are strings instead of numbers.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.