@@ -23,17 +23,10 @@ For Windows user, please install this library *win_inet_pton* before using this
2323
2424You can install the script by using pip command:
2525
26- ` pip install pip install ip2location-python-csv-converter `
27-
28- You can also download the standalone script from the root of this repository to your local directory and run from your local directory.
26+ ` pip install ip2location-python-csv-converter `
2927
3028## Usage
3129
32- ```
33- python ip2location-csv-converter.py [-range | -cidr | -hex] [-replace | -append] INPUT_FILE OUTPUT_FILE
34- ```
35- or
36-
3730```
3831ip2location-csv-converter [-range | -cidr | -hex] [-replace | -append] INPUT_FILE OUTPUT_FILE
3932```
@@ -44,7 +37,9 @@ ip2location-csv-converter [-range | -cidr | -hex] [-replace | -append] INPUT_FIL
4437| --------- | ------------------------------------------------------------ |
4538| -range | IP numbers will be converted into the first IP address and last IP address in the range. |
4639| -cidr | IP numbers will be converted into CIDR format. |
47- | -hex | IP numbers will be converted into hexadecimal format. |
40+ | -hex | IP numbers will be converted into hexadecimal format. (auto padding) |
41+ | -hex4 | IP numbers will be converted into hexadecimal format. (pad IPv4) |
42+ | -hex6 | IP numbers will be converted into hexadecimal format. (pad IPv6) |
4843| -replace | The IP numbers in will be replaced to the selected format. |
4944| -append | The converted format will be appended after the IP numbers field. |
5045
@@ -69,12 +64,6 @@ ip2location-csv-converter [-range | -cidr | -hex] [-replace | -append] INPUT_FIL
6964
7065Command:
7166
72- ```
73- python ip2location-csv-converter.py -range -replace IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
74- ```
75-
76- or
77-
7867```
7968ip2location-csv-converter -range -replace IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
8069```
@@ -98,11 +87,6 @@ Output:
9887
9988Command:
10089
101- ```
102- python ip2location-csv-converter.py -cidr -replace IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
103- ```
104- or
105-
10690```
10791ip2location-csv-converter -cidr -replace IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
10892```
@@ -126,12 +110,6 @@ Output:
126110
127111Command:
128112
129- ```
130- python ip2location-csv-converter.py -hex -replace IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
131- ```
132-
133- or
134-
135113```
136114ip2location-csv-converter -hex -replace IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
137115```
@@ -155,12 +133,6 @@ Output:
155133
156134Command:
157135
158- ```
159- python ip2location-csv-converter.py -range -append IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
160- ```
161-
162- or
163-
164136```
165137ip2location-csv-converter -range -append IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
166138```
@@ -184,12 +156,6 @@ Output:
184156
185157Command:
186158
187- ```
188- python ip2location-csv-converter.py -cidr -append IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
189- ```
190-
191- or
192-
193159```
194160ip2location-csv-converter -cidr -append IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
195161```
@@ -218,12 +184,6 @@ Output:
218184
219185Command:
220186
221- ```
222- python ip2location-csv-converter.py -hex -append IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
223- ```
224-
225- or
226-
227187```
228188ip2location-csv-converter -hex -append IP2LOCATION-DB1.CSV IP2LOCATION-DB1.NEW.CSV
229189```
0 commit comments