Hello,
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.
For example:
file 1
123
1234
123456
file 2
123
2345
23456
file 3 should have
2345
23456
I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
I have file1 and file2. I am trying to get the difference between the two of them to another file? I have tried diff and fgrep with no luck.. I dont think I am using the proper switches to make this happen.
Can someone please give me the key to this lock?
Muchos Thanks.
Tbone (2 Replies)
I need to compare 2 diff type of files and find out the duplicate after comparing each types of files:
Type 1 file name is like: file1.abc
(the extension abc could any 3 characters but I can narrow it down or hardcode for 10/15 combinations).
The other file is file1.bcd01abc (the extension... (2 Replies)
Hi Masters,
I have two files named file1 and file2.
Both the files contains the same contents with some difference in comments,space.But no content change.
I tried to find the diff between the two files to make sure that contents are same.
For that i tried
diff -ibw file1 file2
But... (1 Reply)
Hi,
I have 2 files.I want to check if file1 is contained in file2.
A.txt:
-----
AAA
BBB
B.txt:
------
CCC
AAA
BBB
DDD
I want to check if A.txt is contained in B.txt. Can it be done using SED ? (12 Replies)
Hi,
I use the diff command to compare two files and append this output to a file. I would like to now not only produce the differences but be able to output the total number of changes made, the number of new files added and the number of files deleted, is there I can do this using the diff... (2 Replies)
Hi
I've been trying various methods that I have found online with regards to comparing 2 files using the diff command. Nothing seems to work. The problem is that I'm not too familiar with the proper syntax. Can you please assist me. Here is my script:
#!/bin/bash
awk -F',' -v file1="$1"... (9 Replies)
Hi,
I need a small help to compare two PIPE delimited files.
Note : All The Files Have A Column Name
Example:
file1.txt
=================
column1|column2|column3
one|two|three
four|five|six
seven|eight|nine
file2.txt
=================
column1|column2|column3
1|two|three... (2 Replies)
Guys i have 3 files,
but i want to compare and diff only the 2nd column
path=`/home/whois/doms`
for i in `cat domain.tx`
do
whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant
whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies
LEARN ABOUT OPENSOLARIS
inquiry-device-type
inquiry-device-type(9P) Kernel Properties for Drivers inquiry-device-type(9P)NAME
inquiry-device-type, inquiry-vendor-id, inquiry-product-id, inquiry-revision-id, inquiry-serial-no - inquiry properties for SCSI devices
DESCRIPTION
These are optional properties, typically created by the system, for SCSI target devices. References to these properties should use their
sys/scsi/impl/inquiry.h defined names.
inquiry-device-type is an integer property. When present, the least significant byte of the value indicates the device type as defined by
the SCSI standard. Consumers of this property should compare the property values with DTYPE_* values defined in sys/scsi/generic/inquiry.h.
inquiry-vendor-id is a string property. When present, it contains the vendor information. This information typically comes from the
scsi_inquiry(9S) "inq_vid" field.
inquiry-product-id is a string property. When present, it contains the product identification. This information typically comes from the
scsi_inquiry(9S) "inq_pid" field.
inquiry-revision-id is a string property. When present, it contains the product revision. This revision typically comes from the
scsi_inquiry(9S) "inq_rev" field.
inquiry-serial-no is a string property. When present, it contains the serial number. The serial number is typically obtained from the EVPD
"Unit Serial Number" SCSI INQUIRY data (page 0x80).
SEE ALSO scsi_inquiry(9S)
Writing Device Drivers
NOTES
Values established at tran_tgt_init(9E) time by an HBA driver take precedence over values established by the system, and HBA driver values
may not be the same length as the typical scsi_inquiry(9S) field.
SunOS 5.11 18 May 2001 inquiry-device-type(9P)