File: README

package info (click to toggle)
countrycodes 1.0.3-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 140 kB
  • ctags: 47
  • sloc: ansic: 582; makefile: 89; sh: 12
file content (92 lines) | stat: -rw-r--r-- 2,889 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92

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