mirror of
https://github.com/ellysh/bash-programming-from-scratch.git
synced 2026-01-26 07:43:42 +00:00
10 lines
182 B
Bash
10 lines
182 B
Bash
#!/bin/bash
|
|
|
|
declare -A contacts=(
|
|
["Alice"]="alice@gmail.com"
|
|
["Bob"]="(697) 955-5984"
|
|
["Eve"]="(245) 317-0117"
|
|
["Mallory"]="mallory@hotmail.com")
|
|
|
|
echo "${contacts["$1"]}"
|