8 More Discussions You Might Find Interesting
1. Forum Support Area for Unregistered Users & Account Problems
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
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
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
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
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
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
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
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
geoip(3) Version 0.2 geoip(3)
NAME
geoip - A Tcl extension for geographic or organisational lookup of IP addresses and hostnames.
SYNOPSIS
geoip open [-type TYPE ] [-flags FLAG ]
geoip open [-file PATH ] [-flags FLAG ]
geoip [COMMAND]
geoip [QUERY] arg1
DESCRIPTION
This Tcl extension encapsulates most of GeoIP C API functions into tcl commands.
OPEN OPTIONS
open takes either a file path and a set of flags, or a type and a set of flags. Supported types and flags are described below.
TYPE Looks under the standard installation share directory, eg /usr/local/share/GeoIP/ for a GeoIP database according to type.
PATH Absolute/relative path to GeoIP database.
FLAG Flags seperated by ':', eg memory_cache:memory_check
COMMAND
Individual singular commands can be one of:
close Close the currently open database.
db_info
Get information about the current database.
db_edition
Returns edition of opened database.
db_avail
Test the availability of databases in your system in known locations. e.g db_avail country_edition
QUERY
Commands that query the database. All commands return N/A if a result cannot be found. If none already open, a command will attempt to open
a suitable database. country commands will open a country_edition database. region commands will open a region_edition_rev1 one. name com-
mands will open an org_edition one, and the record_edition will open a city_edition_rev1 database. The commands are:
country_code_by_addr
Takes an IP address and returns the ISO-3166-1 Alpha-2 code of the country.
country_code3_by_addr
Takes an IP address and returns the ISO-3166-1 Alpha-3 code the country.
country_code_by_name
Takes a hostname and returns the ISO-3166-1 Alpha-2 code the country.
country_code3_by_name
Takes a hostname and returns the ISO-3166-1 Alpha-3 code the country.
country_name_by_addr
Takes an IP address and returns the country name.
country_name_by_name
Takes a hostname and returns the country name.
name_by_addr
Takes an IP address and returns the organisation name (or ISP/ASnum according to the opened database)
name_by_name
Takes a hostname and returns the organisation name.
region_by_addr
Takes an IP address and returns these region attributes as in an associative array: country, region
region_by_name
Takes a hostname and returns the region attributes.
record_by_addr
Takes an IP address and returns these record attributes as in an associative array: code, code3, region, country, city, postcode,
latitude, longitude, dma(dma code), and area (area code)
record_by_name
Takes a hostname and returns the record attributes.
TYPES
Relevant types of databases are: country_edition, org_edition, isp_edition, city_edition_rev1, region_edition_rev1, geoip_asnum_edition.
"open -type" will accept their unambiguous abbreviations.
FLAGS
Valid flags are: standard, memory_cache, check_cache, index_cache.
FILES
./share/GeoIP.dat
GeoIP country_edition database.
./share/GeoIPOrg.dat
GeoIP org_edition database.
./share/GeoIPCity.dat
GeoIP region_city_rev1 database.
./share/GeoIPRegion.dat
GeoIP region_edition_rev1 database.
./share/GeoIPASNum.dat
GeoIP asnum_edition database.
BUGS
Please report to author.
AUTHOR
Djihed Afifi <djihed@gmail.com>.
SEE ALSO
GeoIP C API documentation <www.maxmind.com>
Tcl extension April 2007 geoip(3)