Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.

iso-countrycode

switch %s | afghanistan => af, aland islands => ax, albania => al, algeria => dz, american samoa => as, andorra => ad, angola => ao, anguilla => ai, antarctica => aq, antigua and barbuda => ag, argentina => ar, armenia => am, aruba => aw, australia => au, austria => at, azerbaijan => az, bahamas => bs, bahrain => bh, bangladesh => bd, barbados => bb, belarus => by, belgium => be, belize => bz, benin => bj, bermuda => bm, bhutan => bt, bolivia => bo, bosnia and herzegovina => ba, botswana => bw, bouvet island => bv, brazil => br, british indian ocean territory => io, brunei darussalam => bn, bulgaria => bg, burkina faso => bf, burundi => bi, cambodia => kh, cameroon => cm, canada => ca, cape verde => cv, cayman islands => ky, central african republic => cf, chad => td, chile => cl, china => cn, christmas island => cx, cocos => cc, colombia => co, comoros => km, congo => cg, congo democratic republic => cd, cook islands => ck, costa rica => cr, cote d' ivoire => ci, croatia => hr, cuba => cu, cyprus => cy, czech republic => cz, denmark => dk, djibouti => dj, dominica => dm, dominican republic => do, ecuador => ec, egypt => eg, salvador => sv, equatorial guinea => gq, eritrea => er, estonia => ee, ethiopia => et, falkland islands => fk, faroe islands => fo, fiji => fj, finland => fi, france => fr, french guiana => gf, french polynesia => pf, french southern territories => tf, gabon => ga, gambia => gm, georgia => ge, germany => de, ghana => gh, gibraltar => gi, greece => gr, greenland => gl, grenada => gd, guadeloupe => gp, guam => gu, guatemala => gt, guernsey => gg, guinea => gn, guinea-bissau => gw, guyana => gy, haiti => ht, heard island and mcdonald islands => hm, honduras => hn, hong kong => hk, hungary => hu, iceland => is, india => in, indonesia => id, iran => ir, iraq => iq, ireland => ie, isle of man => im, israel => il, italy => it, jamaica => jm, japan => jp, jersey => je, jordan => jo, kazakhstan => kz, kenya => ke, kiribati => ki, north korea => kp, south korea => kr, kuwait => kw, kyrgyzstan => kg, laos => la, latvia => lv, lebanon => lb, lesotho => ls, liberia => lr, libya => ly, liechtenstein => li, lithuania => lt, luxembourg => lu, macao => mo, macedonia => mk, madagascar => mg, malawi => mw, malaysia => my, maldives => mv, mali => ml, malta => mt, marshall islands => mh, martinique => mq, mauritania => mr, mauritius => mu, mayotte => yt, mexico => mx, micronesia => fm, moldova => md, monaco => mc, mongolia => mn, montenegro => me, montserrat => ms, morocco => ma, mozambique => mz, myanmar => mm, namibia => na, nauru => nr, nepal => np, netherlands => nl, netherlands antilles => an, new caledonia => nc, new zealand => nz, nicaragua => ni, niger => ne, nigeria => ng, niue => nu, norfolk island => nf, northern mariana islands => mp, norway => no, oman => om, pakistan => pk, palau => pw, palestinian territory => ps, panama => pa, papua new guinea => pg, paraguay => py, peru => pe, philippines => ph, pitcairn => pn, poland => pl, portugal => pt, puerto rico => pr, qatar => qa, reunion => re, romania => ro, russia => ru, rwanda => rw, sahara occidental => eh, saint barthélemy => bl, saint helena => sh, saint kitts and nevis => kn, saint lucia => lc, saint pierre and miquelon => pm, saint vincent and the grenadines => vc, samoa => ws, san marino => sm, saint martin => mf, sao tome and principe => st, saudi arabia => sa, senegal => sn, serbia => rs, seychelles => sc, sierra leone => sl, singapore => sg, slovakia => sk, slovenia => si, solomon islands => sb, somalia => so, south africa => za, south georgia and the south sandwich islands => gs, spain => es, sri lanka => lk, sudan => sd, suriname => sr, svalbard and jan mayen => sj, swaziland => sz, sweden => se, switzerland => ch, syria => sy, taiwan => tw, tajikistan => tj, tanzania => tz, thailand => th, timor-leste => tl, togo => tg, tokelau => tk, tonga => to, trinidad and tobago => tt, tunisia => tn, turkey => tr, turkmenistan => tm, turks and caicos islands => tc, tuvalu => tv, uganda => ug, ukraine => ua, united arab emirates => ae, united kingdom => gb, united states => us, united states minor outlying islands => um, uruguay => uy, uzbekistan => uz, vanuatu => vu, vatican => va, venezuela => ve, viet nam => vn, virgin islands british => vg, virgin islands u.s. => vi, wallis and futuna => wf, western sahara => eh, yemen => ye, zambia => zm, zimbabwe => zw, * => http://www.obs.coe.int/about/iso_3166.html
NAME

    iso-countrycode - displays the ISO country code of a country

SYNOPSIS
    
    iso-countrycode  [country]

DESCRIPTION    
    
    I thought that having a command displaying the iso country code 
    would be useful. For this command I also took the English names. 
    There are 247 countries listed. Nevertheless, some changes were made for 
    some specific countries. Here is the list:

    bolivia instead of bolivia, plurinational state of
    congo democratic republic instead of congo, the democratic republic of the 
    cote d'ivoire instead of côte d'ivoire
    salvador instead of el salvador
    falkland islands instead of falkland islands (malvinas) 
    iran instead of iran, islamic republic of
    north korea instead of korea, democratic people's republic of
    south korea instead of korea, republic of 
    laos instead of lao people's democratic republic
    libya instead of libyan arab jamahiriya
    macedonia instead of macedonia, the former yugoslav republic of
    micronesia instead of micronesia, federated states of
    moldova instead of moldova, république de
    palestinian territory instead of palestinian territory, occupied
    reunion instead of réunion
    russia instead of russian federation
    saint helena instead of saint helena, ascension and tristan da cunha
    syria instead of syrian arab republic
    taiwan instead of taiwan, province of china
    tanzania tanzania, united republic of
    vatican instead of vatican city state
    venezuela instead of venezuela, bolivarian republic of
    virgin islands british instead of virgin islands, british
    virgin islands u.s. instead of virgin islands, u.s.

    I hope I don't forget anything.
    
REMARK 

    switch won't work if you put capitals, that's why not only countries
    but also languages in the langcode command have no capital letters.

EXAMPLE
    
    iso-countrycode argentina (returns ar)
    
    iso-countrycode spain (returns es)

RELATED COMMANDS

    langcode
    
AUTHOR
    Luis Gabriel Matallana Vallejo <luisgmatallana@gmail.com> 

    
37 uses - Created 2010-05-18 00:17:24 - Last used 2013-07-19 02:20:00
Is this command broken? Tell Jon if you know how to fix it.
Do you find this command offensive? Let Jon know.