use File::Compare;
$count = 0;
open (F1, "file1.txt") || die "Could not open file $!";
while (<F1>) {
@array1=split;
}
close (F1);
open (F2, "file2.txt") || die "Could not open file $!";
while (<F2>) {
@array2= split;
close (F2);
}
$i=0;
foreach (@array1) {
if ($array1[$i] ne $array2[$i])
{$count++; }
$i=$i+ 1;
}
print "$count \n";
Hello Everybody!!!!!!!!! Request you to help me with the below mentioned issue:
I have 2 files say,
File 1:
a|4|7
b|3|2
c|8|8
d|8|9
File 2:
a|4|6
b|2|2
c|8|8
d|9|8
The third file(output file) should have:
Data mismatch in row 1 column 3
Data mismatch in row 2 coumn 2
Data... (3 Replies)
I have two files like this:
#FILE 1
ABCD 4322 26485
JMTJ 5311 97248
XMPJ 4321 58978
#FILE 2
ABCD 4321 26485
JMTJ 5311 97248
XMPJ 4321 68978
What to do: Compare the two files and find those lines that doesn't match. And have a new file like this:
#FILE 3
"from file 1"
ABCD 4322 26485... (11 Replies)
Hi,
I am trying to find an alternative way to do tkdiff. In tkdiff the gui compares each line and highlights only the differences.
for eg:
John works at McDonalds s(test)
He was playing guitar tywejk
John works in McDonalds 9908
He was playing guitar
I am... (1 Reply)
All,
I have two csv files, the format of which are exactly the same.
I would like to find differences between the two files but would like to identify the difference as opposed to just printing a different line.
For exmaple
File 1
xxx,yyy,zzz,1,2,3
111,222,333,xxx,yyy
... (4 Replies)
Hi
Hope you are having a great weeknd !! I had a question and need your expertise for this :
I have 2 files File1 & File2(of same structure) which I need to compare on some columns. I need to find the values which are there in File2 but not in File 1 and put the Differences in another file... (5 Replies)
need a one liner to compare 2nd and 3rd field and print values that are not matched in 2nd field
Input
col 2 col 3
1.1.1.1 11.11.11.11
8.8.8.8 0.0.0.0
3.3.3.3 2.2.2.2
7.7.7.7 3.3.3.3
5.5.5.5 1.1.1.1
4.4.4.4
6.6.6.6
9.9.9.9
output
7.7.7.7 ... (12 Replies)
Hi....I'm having 2 xml files, one is having some special characters and another is a clean xml file does not have any special characters. Now I need one audit kind of file which will show me only from which line the special characters have been removed and the special characters.
Can you please... (1 Reply)
Hello,
I have two text files, each with a single column,
file 1:
124152970
123899868
123476854
54258288
123117283
file 2:
124152970
123899868
54258288
123117283
122108330 (5 Replies)
Discussion started by: LMHmedchem
5 Replies
LEARN ABOUT REDHAT
tiffcmp
TIFFCMP(1) General Commands Manual TIFFCMP(1)NAME
tiffcmp - compare two TIFF files
SYNOPSIS
tiffcmp [ options ] file1.tif file2.tif
DESCRIPTION
Tiffcmp compares the tags and data in two files created according to the Tagged Image File Format, Revision 6.0. The schemes used for com-
pressing data in each file are immaterial when data are compared-data are compared on a scanline-by-scanline basis after decompression.
Most directory tags are checked; notable exceptions are: GrayResponseCurve, ColorResponseCurve, and ColorMap tags. Data will not be com-
pared if any of the BitsPerSample, SamplesPerPixel, or ImageWidth values are not equal. By default, tiffcmp will terminate if it encoun-
ters any difference.
OPTIONS -l List each byte of image data that differs between the files.
-t Ignore any differences in directory tags.
BUGS
Tags that are not recognized by the library are not compared; they may also generate spurious diagnostics.
The image data of tiled files is not compared, since the TIFFReadScanline() function is used. A error will be reported for tiled files.
The pixel and/or sample number reported in differences may be off in some exotic cases.
SEE ALSO pal2rgb(1), tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)
September 26, 1994 TIFFCMP(1)