Ravi Sir's Cards › AWS
Associative arrays
This revision card explains Associative arrays. It starts from the need that declare first. It describes set a key. The how-to section notes read a key. An example on the card is all keys.
Read card text
What this card says
Why do we need it?
Declare first.
declare -A port
What is it?
Set a key.
port[web]=80
How to do it
Read a key.
${port[web]}
Example
All keys.
${!port[@]}