I have a list of 2 character country abbreviations used in the Maxmind GeoCountry database that I need to convert to the standard 3 character country abbreviation ISO 3166-11 format.
I could have a long list of sed substitute statements for each country.
Code:
sed "s/US/USA/g" <file>
Is their a more elegant way to do this? Maybe an array of some sort?
This substitution will be used in a bash script.
Thanks & Regards,