I know this is a challenging, its about comparing a 3 paragraph, from a whois command, i want to print what is the data that is not unique, example below is the admin phone and techphone, the rest is the same.it will print the correct and wrong
Hi,
I'm trying to find pattern in log file. I'm using awk to search the pattern and print the paragraph. And it's not working well like I want.
The file actually is TCAP message, it has format like this :
...
...
...
*****************************************
INCOMING TCAP MESSAGE
At... (6 Replies)
Hi ,
Unix.com has been life saver for me I admit :)
I am trying to extract a paragraph based on matching pattern "CREATE TABLE " from a ddl file . The paragraphs are seperated by blank line .
Input file is
#cat zip.20080604.sql1
CONNECT TO TST103
SET SESSION_USER OPSDM002
... (2 Replies)
Hi,
Consider the following paragraph.
This is line1.
This is line2,
This is last line.
I need the output as
4:This is last line.
i.e The line after the blank line should be displayed along with line number.
I am a unix begineer.Any one please help me to solve this problem (3 Replies)
Hi,
I have read similar questions and I was not able to get a solution, so please help :)
I have two files:
1-Pattern file contains list of patterns
pattern1
pattern2
pattern3
pattern4
....
pattern#
2-input file in the format
>hdhfshsdfjhpattern1xmbxmbxnmv... (4 Replies)
Hi, I'm trying to output all text from the first paragraph in a file that contains a specific string through the last paragraph in that file that contains that string.
Previously, I was outputting just each paragraph with that search string with:
cat in_file | nawk '{RS=""; FS="\n";... (2 Replies)
Hello,
I hava a file resulting from a script which ends as follows:
172|18|FOOTER|DISCLOSURE||16¶
173|0|FOOTER|FILE||18¶
note the paragraph signs are only placed to demonstrate the problem
I want it to return the same last lines but without the last empty paragraph i.e:
... (3 Replies)
I am using OSX. I have a multi-mol2 file (text file with coordinates and info for several molecules). An example of two molecules in the file is given below for molecule1 and molecule 2. The total file contains >50,000 molecules.
I would like to extract out and write to another file only the... (2 Replies)
Hello:
Have a very annoying problem:
Need to extract paragraphs with a specific string in them from a very large file
with a repeating record separator.
Example data: a file called test.out
CREATE VIEW view1
AS something
FROM table1 ,table2 as A, table3 (something FROM table4)
FROM... (15 Replies)
Discussion started by: delphys
15 Replies
LEARN ABOUT DEBIAN
www::cnic::simple
WWW::CNic::Simple(3pm) User Contributed Perl Documentation WWW::CNic::Simple(3pm)NAME
WWW::CNic::Simple - a procedural interface to WWW::CNic
SYNOPSIS
#!/usr/bin/perl
use WWW::CNic::Simple;
my @suffixes = suffixes();
my %results = check('test-domain', 'uk.com', 'uk.net');
print "test-domain.uk.com is registered.
" if ($results{'uk.com'} == 1);
my %whois = whois('test-domain.uk.com');
print "domain status: $whois{status}
";
DESCRIPTION
This interface is intended for those who want a simplified view of the WWW::CNic library. It provides simple functions for querying the
CentralNic system, making it ideal for one-liners and other tasks.
Please note that it is not possible to make domain registrations or modifications using "WWW::CNic::Simple".
FUNCTIONS
my @suffixes = suffixes();
This function returns an array containing the currently live CentralNic suffixes.
my %result = check($domain, @suffixes);
This function does an availability check on $domain against the suffixes contained in @suffixes. Note that if @suffixes is omitted the
check will run against all CentralNic domains.
The function returns a hash of the form:
my %result = ( 'uk.com' => 1,
'uk.net' => 0,
'eu.com' => 0);
where 1 indicates that the domain is already registered.
my %whois = whois($domain);
This function returns a hash containing whois data for the given $domain This hash is of the form:
my %whois = { chandle => { postcode => 'SW6 4SN',
country => 'UK',
userid => 'C11480',
fax => 'N/A',
addr => "163 New King's Road, Fulham, London",
name => 'Hostmaster',
email => 'webservices@centralnic.com',
phone => '020 7751 9000',
company => 'CentralNic Ltd' },
expires => '1001458800',
status => 'Live',
thandle => # as chandle above
bhandle => # as chandle above
registrant => 'CentralNic Ltd',
domain => 'toolkit-test.uk.com',
created => '1001458800'
};
COPYRIGHT
This module is (c) 2011 CentralNic Ltd. All rights reserved. This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
SEE ALSO
o http://toolkit.centralnic.com/
o WWW::CNic
o WWW::CNic::Cookbook
perl v5.12.3 2011-05-13 WWW::CNic::Simple(3pm)