ip 2 country sorting[solved]


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ip 2 country sorting[solved]
# 1  
Old 06-19-2012
ip 2 country sorting[solved]

Dear folks.

I have list of ip address from different country, i would like check from script this ip address belong to which country, please suggest any command, i have more than 200 ip address so i need to do it via script. Script will show me country code and its City if possible?

---------- Post updated at 02:13 AM ---------- Previous update was at 02:06 AM ----------

Got it thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Registering from blocked country

Hi, I'm come from Vietnam and want to join to Unix forum just because I like Unix programming and want to learning more. My IP is allocate by DHCP server so it is dynamic. Here is my desired username and my email: Username: lucasdo Email: rennersstar@gmail.com Thank you very much for... (0 Replies)
Discussion started by: lucasdo
0 Replies

2. Shell Programming and Scripting

[Solved] Sorting a column based on another column

hello, I have a file as follows: F0100010 A C F0100040 A G BTA-28763-no-rs 77.2692 F0100020 A G F0100030 A T BTA-29334-no-rs 11.4989 F0100030 A T F0100020 A G BTA-29515-no-rs 127.006 F0100040 A G F0100010 A C BTA-29644-no-rs 7.29827 F0100050 A... (9 Replies)
Discussion started by: Homa
9 Replies

3. Shell Programming and Scripting

[Solved] Sorting a column in a file based on a column in a second file

Hello, I have two files as the following: File1: F0100020 A G F0100030 A T F0100040 A G File2: F0100040 A G BTA-28763-no-rs 77.2692 F0100030 A T BTA-29334-no-rs 11.4989 F0100020 A G BTA-29515-no-rs 127.006 I want to sort the second file based on the... (6 Replies)
Discussion started by: Homa
6 Replies

4. Shell Programming and Scripting

[SOLVED] Sorting file and get everything on same line on condition

Good afternoon! I am a perl newbie. I hope you will be patient with me. I have a script that needs to be written in perl. I can't do it in awk or shell scripting. Here is the script: #!/usr/bin/perl use POSIX qw(strftime); use FileHandle; use Getopt::Long; use IO::Handle;... (0 Replies)
Discussion started by: brianjb
0 Replies

5. Shell Programming and Scripting

[SOLVED] Sorting into new files based on column

Hi, I have the following file, I need to sort it based on a column and write to different output files based on this column request_guid iso_country_cd address_data response_time 32895901-d17f-414c-ac93-3e7e0f5ec240 AND BaseName:CATALUNYA; HouseNumber:1; ISOCountryCode:AND;... (1 Reply)
Discussion started by: ramky79
1 Replies

6. Shell Programming and Scripting

[Solved] Sorting by several fields

Hello, I have a file with information separated by ";" like this: ABC;20110126000008;00-10-95-29-17-C6;2;37190292 ABC;20110126000008;00-10-95-29-17-C6;1;53140866 ABC;20110126000008;00-10-05-01-11-38;2;11182251 ABC;20110126000008;00-10-05-01-11-38;1;25952816... (3 Replies)
Discussion started by: rubber08
3 Replies

7. Shell Programming and Scripting

whois country help

Hello folks, I have list of ips like 1.1.1.1 2.2.2.2 3.3.3.3 4.4.4.4 whois 1.1.1.1 |grep -E 'country|Country' it show country=US or whatever. so i have number of ips in text file, how i can use above script to automate output like 1.1.1.1 US 2.2.2.2 CA 3.3.3.3 FR (3 Replies)
Discussion started by: learnbash
3 Replies

8. UNIX for Advanced & Expert Users

Script for Country Codes

Dear All I have a file which contains lines looks like this: ISC Egypt-Alex2 126 104541338 218926893238 f 1B ISC BT-Colindale 26 249126190534 218913486850 b 29 ISC Egypt-Cairo2 199 129026052 218927661509 b 26 As you see in each line $4 and $5 are phone numbers , i want a script which... (19 Replies)
Discussion started by: zanetti321
19 Replies
Login or Register to Ask a Question
DATETIMEZONE.LISTIDENTIFIERS(3) 					 1					   DATETIMEZONE.LISTIDENTIFIERS(3)

DateTimeZone::listIdentifiers - Returns a numerically indexed array containing all defined timezone identifiers

       Object oriented style

SYNOPSIS
publicstatic array DateTimeZone::listIdentifiers NULL ([int $what = DateTimeZone::ALL], [string $country]) DESCRIPTION
Procedural style array timezone_identifiers_list NULL ([int $what = DateTimeZone::ALL], [string $country]) PARAMETERS
o $what - One of DateTimeZone class constants. o $country - A two-letter ISO 3166-1 compatible country code. Note This option is only used when $what is set to DateTimeZone::PER_COUNTRY. RETURN VALUES
Returns array on success or FALSE on failure. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.0 | | | | | | | Added the optional $what and $country parame- | | | ters. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 A timezone_identifiers_list(3) example <?php $timezone_identifiers = DateTimeZone::listIdentifiers(); for ($i=0; $i < 5; $i++) { echo "$timezone_identifiers[$i] "; } ?> The above example will output something similar to: Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers Africa/Asmara SEE ALSO
timezone_abbreviations_list(3). PHP Documentation Group DATETIMEZONE.LISTIDENTIFIERS(3)