Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > c919c06e32b4b94fea9c89d14f660c65 > files > 7

countrycodes-1.0.3-3mdk.ppc.rpm


Country Codes
-------------
Author: 
         Diego Javier Grigna <diego@grigna.com>


Q: What does this program do?

A: It's an ISO 3166 country code finder. I use it when I enter IRC, when I
   receive email, when I surf the web, etc, to know, for example, from what
   country the email cames from. 
 
   Dumb example:
  
   Suppose that you got email from:
       somebody1@somesubdomain.somedomain.ar
       somebody2@somesubdomain.somedomain.it
       somebody3@somesubdomain.somedomain.lt
       somebody4@somesubdomain.somedomain.ee

   In this case the last two letters of the domain name are ISO 3166 country
   codes, (this not always happens, .com, .org, .net are NOT ISO 3166 codes!)
 
   I am lazy to hold all the ISO 3166 in my mind, or to grep it from a file,
   it's too much work :)
   Then I made this program, and when I got some of the above emails I type:

   $
   $ iso3166 ar it lt ee

   Country                                          2 letter  3 letter  Number
   ----------------------------------------------------------------------------
   Argentina                                            ar       arg      32
   Italy                                                it       ita     380
   Lithuania                                            lt       ltu     440
   Estonia                                              ee       est     233
   
   $

   The same applies when I see any domain name (in IRC, HTTP, FTP, etc).

   You could search the table using the 2 or 3 letter codes, using the country
   number or the country name. Also you could see all the entries in the table
   using the "-a" command line option.

   --------------------------------------------------------------------------
   New features is v1.0.2!
   --------------------------------------------------------------------------

   Now you could enter a domain name, and the program will try to explain it.
   Example:

   $
   $ iso3166 -d ftp.somename.org.ar ns2.somehost.edu.cn welcome.to

   Domain name  : ftp.somename.org.ar
   Top domain   : ar       (Argentina)
   Sub domain #1: org      (Organizations)
   Sub domain #2: somename         (Unknown)
   Sub domain #3: ftp      (File Transfer Protocol)


   Domain name  : ns2.somehost.edu.cn
   Top domain   : cn       (China)
   Sub domain #1: edu      (Educational institutions)
   Sub domain #2: somehost         (Unknown)
   Sub domain #3: ns2      (Name server)


   Domain name  : welcome.to
   Top domain   : to       (Tonga)
   Sub domain #1: welcome  (Unknown)


   $


Q: Where can I get this program?

A:
   See:
        http://www.grigna.com/diego/linux/countrycodes/
   or
        ftp://sunsite.unc.edu/pub/Linux/apps/misc/

--------------------------------------------------------------------------

If you have (problems|questions|bug|features to add) please
mail me to:
            diego@grigna.com