Sponsored Content
Full Discussion: Compare a paragraph
Top Forums Shell Programming and Scripting Compare a paragraph Post 302937815 by kenshinhimura on Wednesday 11th of March 2015 07:59:28 AM
Old 03-11-2015
Thanks man, but i want it also to print what are not the same data..

Code:
whois google.com| sed -n '/Registry Registrant ID:/,/Tech Email:/p'| sed 's/Registry Tech ID:/\n\n&/'|sed 's/Registry Admin ID:/\n\n&/'
Registry Registrant ID:
Registrant Name: Dns Admin
Registrant Organization: Google Inc.
Registrant Street: Please contact contact-admin@google.com, 1600 Amphitheatre Parkway
Registrant City: Mountain View
Registrant State/Province: CA
Registrant Postal Code: 94043
Registrant Country: US
Registrant Phone: +1.6502530000
Registrant Phone Ext:
Registrant Fax: +1.6506188571
Registrant Fax Ext:
Registrant Email: dns-admin@google.com


Registry Admin ID:
Admin Name: DNS Admin
Admin Organization: Google Inc.
Admin Street: 1600 Amphitheatre Parkway
Admin City: Mountain View
Admin State/Province: CA
Admin Postal Code: 94043
Admin Country: US
Admin Phone: +1.6506234000
Admin Phone Ext:
Admin Fax: +1.6506188571
Admin Fax Ext:
Admin Email: dns-admin@google.com


Registry Tech ID:
Tech Name: DNS Admin
Tech Organization: Google Inc.
Tech Street: 2400 E. Bayshore Pkwy
Tech City: Mountain View
Tech State/Province: CA
Tech Postal Code: 94043
Tech Country: US
Tech Phone: +1.6503300100
Tech Phone Ext:
Tech Fax: +1.6506181499
Tech Fax Ext:
Tech Email: dns-admin@google.com




Code:
below are data that is not the same from google.com domain
Registry Registrant ID:
Registrant Phone: +1.6502530000

Registry Admin ID:
Admin Phone: +1.6506234000



Registry Tech ID:
Tech Phone: +1.6503300100

################################################
from yahoo.com domain

Registry Registrant ID:
Registrant Organization: yahoo.com

Registry Admin ID:
Admin Organization: yahoo1.com

---------- Post updated 03-10-15 at 11:33 AM ---------- Previous update was 03-09-15 at 02:31 PM ----------

guys, any help on this please?

---------- Post updated 03-11-15 at 06:59 AM ---------- Previous update was 03-10-15 at 11:33 AM ----------

team, any ideas? please?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bold the paragraph

Hi, I have a file with multiple paragraph. I want to look for some word and make that paragraph bold. How can I do that? Thanks, Karthik (3 Replies)
Discussion started by: caprikar
3 Replies

2. Shell Programming and Scripting

help, using awk to get paragraph

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)
Discussion started by: kunimi
6 Replies

3. Linux

Extract a paragraph

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)
Discussion started by: capri_drm
2 Replies

4. UNIX for Dummies Questions & Answers

Split a paragraph

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)
Discussion started by: Sekar1
3 Replies

5. Shell Programming and Scripting

Pattern in a paragraph

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)
Discussion started by: tbakheet
4 Replies

6. UNIX for Dummies Questions & Answers

Output text from 1st paragraph in file w/ a specific string through last paragraph of file w/ string

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)
Discussion started by: carpenn
2 Replies

7. Shell Programming and Scripting

Deletion of last Empty paragraph

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)
Discussion started by: TasosARISFC
3 Replies

8. Shell Programming and Scripting

How to grep paragraph?

Hi, I have A file like this: >Contig1 AAAAAAATTTTTTCCCAATATATGAT ATATATAEATATATAT >Contig2 AAAAAAATTTTTTCCCAATATATGAT ATATATAEAATTTTTAATTTTTTCCCA ATCCCAAATATATAT >Contig3 AAAAAAATTTTTTCCCAATATATGAT ATATATAEAATTTTTAATTTTTTCCCA ATCCCAAATAAATTTTTTCCCAATAT ATGATATATATAEAATTTTTAATTTTT... (3 Replies)
Discussion started by: the_simpsons
3 Replies

9. UNIX for Dummies Questions & Answers

Extract paragraph that contains a value x<-30

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)
Discussion started by: Egy
2 Replies

10. Shell Programming and Scripting

How to extract a paragraph containing a given string?

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
LedgerSMB::DBObject::Admin(3pm) 			User Contributed Perl Documentation			   LedgerSMB::DBObject::Admin(3pm)

NAME
LedgerSMB::DBObject::Admin - User/group management for LedgerSMB SYNOPSIS
User/group management for LedgerSMB INHERITS
Universal LedgerSMB LedgerSMB::DBObject METHODS
save_user Saves a user optionally with location and contact data. If the password or import hash values is set, will not save contact or address information. This API is not fully documented at this time because it is expected that it will be broken down into more manageable chunks in future versions. Please do not count on the behavior. delete_user($delete_role) Deletes a user specified by $self->{user_id}. if $delete_role is true, deletes the role too. search_users Returns a list of users matching search criteria, and attaches that list to the user_results hash value. Search criteria: username first_name last_name ssn dob Undef matches all values. All matches exact except username which allows for partial matches. list_sessions returns a list of active sessions, when they were last used, and how many discretionary locks they hold. The list is also attached to the active_sessions hash value. No inputs required or used. delete_session Deletes a session identified by the session_id hashref. save_roles Saves the roles assigned to a user. Each role is specified as a hashref true value, where the key is the full name of the role (i.e. starting with lsmb_[dbname]__). get_salutations Returns a list of salutation records from the db for the dropdowns. get_roles Returns a list of role names with the following format: {role => $full_role_name, description => $short_role_name} The short role name is the full role name with the prefix removed (i.e. without the lsmb_[dbname]__ prefix). get_countries Returns a reference to an array of hashrefs including the country data in the db. Sets the same reference to the countries hash value. get_contact_classes Returns a list of hashrefs ({id =>, class =>}) relating to the contact classes. COPYRIGHT
Copyright (c) 2009, the LedgerSMB Core Team. This is licensed under the GNU General Public License, version 2, or at your option any later version. Please see the accompanying License.txt for more information. perl v5.14.2 2012-03-25 LedgerSMB::DBObject::Admin(3pm)
All times are GMT -4. The time now is 02:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy