Last active
April 3, 2018 07:39
-
-
Save sokil/7926eb058d7f1da16da8 to your computer and use it in GitHub Desktop.
Shell hashtable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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