Skip to content

Instantly share code, notes, and snippets.

@sokil
Last active April 3, 2018 07:39
Show Gist options
  • Save sokil/7926eb058d7f1da16da8 to your computer and use it in GitHub Desktop.
Save sokil/7926eb058d7f1da16da8 to your computer and use it in GitHub Desktop.
Shell hashtable
CCList=(
"GBR:GB"
"USA:US"
"CAN:CA"
"NLD:NL"
"NZL:NZ"
"ZAF:ZA"
"IRL:IE"
"CZE:CZ"
"AUS:AU"
"ITA:IT"
"PRT:PT"
"ARG:AR"
"FRA:FR"
"MEX:MX"
"ESP:ES"
)
for CC in "${CCList[@]}" ; do
CC3="${CC%%:*}"
CC2="${CC##*:}"
echo "$CC3 => $CC2"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment