I have two files in UNIX.
1st file is Entity and Second File is References. 1st File has only one column named Entity ID and 2nd file has two columns Entity ID | Person ID.
I want to produce a output file where entity id's are matching in both the files.
Entity File
Reference File
Output File
Entity Files has 90K Records and Reference file has 200K Records. Is there an efficient way to produce the third file ?
Any solution is appreciated.
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
I have two files like
File1 : will get this file from "who" command. It is a unix file.
user val1 Jul 29 13:15 (IP Address1)
user val3 Jul 30 03:21 (IP Address2)
user val2 Jul 29 13:16 (IP Address3)
user val4 Jul 29 13:17 (IP Address4)
... (4 Replies)
Hi experts,
Would you please help me with this?
I have several files and I need to join the forth field of them based on the common first field.
here's an example...
first file:
280346 39.88 -75.08 547.8
280690 39.23 -74.83 538.7
280729 40.83 -75.08 499.2
280907 40.9 -74.4 507.8... (5 Replies)
First, thanks for the help in previous posts... couldn't have gotten where I am now without it!
So here is what I have, I use AWK to match $1 and $2 as 1 string in file1 to $1 and $2 as 1 string in file2. Now I'm wondering if I can extend this AWK command to incorporate the following:
If $1... (4 Replies)
Hi List,
I have two files. File1 contains all of the data I require to be processed, and I need to add another field to this data by matching a common field in File2 and appending a corresponding field to the data in File1 based on the match... So:
File 1:... (1 Reply)
Dear List,
I have a file of csv data which has a different line per compliance check per host. I do not want any omissions from this csv data file which looks like this:
date,hostname,status,color,check
02-03-2012,COMP1,FAIL,Yellow,auth_pass_change... (3 Replies)
Hi Friends,
I am new to Shell Scripting and need your help in the below situation.
- I have two files (File 1 and File 2) and the contents of the files are mentioned below.
- "Application handle" is the common field in both the files.
(NOTE :- PLEASE REFER TO THE ATTACHMENT "Compare files... (2 Replies)
Hi Friends,
Need Help. I have file1.txt as
File1.txt
|123|A|7267|Hyder|Cross|Sell|7801
|995|A|7051|2008|Lunar|New|Year|Promotion|7801
|996|A|7022|Q108|Targ|Prospect|&|SSCC|Savings|Promo|7801
|997|A|7182|Q1|Feb-Apr|08|Credit|ITA|PA|SBA|Campaign|7801
File2.txt... (7 Replies)
I have this code
awk 'NR==FNR{a=$1;next} a' file1 file2
which does what I need it to do, but for only two files. I want to make it so that I can have multiple files (for example 30) and the code will return only the items that are in every single one of those files and ignore the ones... (7 Replies)
Hi All,
i have below two files.
FILE:
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="" MOUNTPOINT=""
NAME="/dev/sda1" TYPE="part" SIZE="500M" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="/dev/sda" MOUNTPOINT="/boot"
NAME="/dev/sda2"... (3 Replies)
Discussion started by: balu1234
3 Replies
LEARN ABOUT DEBIAN
snmp::info::entity
Info::Entity(3pm) User Contributed Perl Documentation Info::Entity(3pm)NAME
SNMP::Info::Entity - SNMP Interface to data stored in ENTITY-MIB. RFC 2737
AUTHOR
Max Baker
SYNOPSIS
# Let SNMP::Info determine the correct subclass for you.
my $entity = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.
";
my $class = $entity->class();
print "SNMP::Info determined this device to fall under subclass : $class
";
DESCRIPTION
ENTITY-MIB is used by Layer 2 devices from HP, Aironet, Foundry, Cisco, and more.
See RFC 2737 for full details.
Create or use a device subclass that inherit this class. Do not use directly.
For debugging purposes you can call this class directly as you would SNMP::Info
my $entity = new SNMP::Info::Entity (...);
Inherited Classes
none.
Required MIBs
ENTITY-MIB
MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
GLOBALS
none.
TABLE METHODS
These are methods that return tables of information in the form of a reference to a hash.
Entity Table
$entity->e_index()
Index
("entPhysicalIndex")
$entity->e_alias()
Human entered, not usually used.
("entPhysicalAlias")
$entity->e_class()
Stack, Module, Container, Port ...
("entPhysicalClass")
$entity->e_descr()
Human Friendly
("entPhysicalClass")
$entity->e_fwver()
("entPhysicalFirmwareRev")
$entity->e_fru()
BOOLEAN. Field Replaceable unit?
("entPhysicalFRU")
$entity->e_hwver()
("entPhysicalHardwareRev")
$entity->e_id()
This is human entered and not normally used.
("entPhysicalAssetID")
$entity->e_map()
See MIB.
("entAliasMappingIdentifier")
$entity->e_model()
Model Name of Entity.
("entPhysicalModelName")
$entity->e_name()
More computer friendly name of entity. Parse me.
("entPhysicalName")
$entity->e_parent()
0 if root.
("entPhysicalContainedIn")
$entity->e_port()
Maps Entity Table entries to the Interface Table ("IfTable") using $entity->e_map()
$entity->e_pos()
The relative position among all entities sharing the same parent.
("entPhysicalParentRelPos")
$entity->e_serial()
("entPhysicalSerialNum")
$entity->e_swver()
("entPhysicalSoftwareRev")
$entity->e_type()
This is an OID, which gets munged into the object name if the right MIB is loaded.
("entPhysicalVendorType")
$entity->e_vendor()
Vendor of Module.
("entPhysicalMfgName")
perl v5.12.4 2011-09-28 Info::Entity(3pm)