BZDIFF(1) General Commands Manual BZDIFF(1)NAME
bzcmp, bzdiff - compare bzip2 compressed files
SYNOPSIS
bzcmp [ cmp_options ] file1 [ file2 ]
bzdiff [ diff_options ] file1 [ file2 ]
DESCRIPTION
Bzcmp and bzdiff are used to invoke the cmp or the diff program on bzip2 compressed files. All options specified are passed directly to
cmp or diff. If only 1 file is specified, then the files compared are file1 and an uncompressed file1.bz2. If two files are specified,
then they are uncompressed if necessary and fed to cmp or diff. The exit status from cmp or diff is preserved.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWbzip |
+--------------------+-----------------+
|Interface Stability | External |
+--------------------+-----------------+
SEE ALSO cmp(1), diff(1), bzmore(1), bzless(1), bzgrep(1), bzip2(1)BUGS
Messages from the cmp or diff programs refer to temporary filenames instead of those specified.
BZDIFF(1)
Check Out this Related Man Page
GZDIFF(1) General Commands Manual GZDIFF(1)NAME
gzcmp, gzdiff - compare compressed files
SYNOPSIS
gzcmp [ cmp_options ] file1 [ file2 ]
gzdiff [ diff_options ] file1 [ file2 ]
DESCRIPTION
gzcmp and gzdiff are used to invoke the cmp or the diff program on compressed files. All options specified are passed directly to cmp or
diff. If only 1 file is specified, then the files compared are file1 and an uncompressed file1.gz. If two files are specified, then they
are uncompressed if necessary and fed to cmp or diff. The exit status from cmp or diff is preserved.
SEE ALSO cmp(1), diff(1), gzmore(1), gzgrep(1), gznew(1), gzforce(1), gzip(1), gzexe(1)BUGS
Messages from the cmp or diff programs refer to temporary filenames instead of those specified.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWgzip |
+--------------------+-----------------+
|Interface Stability | External |
+--------------------+-----------------+
NOTES
Source for gzip is available in the SUNWgzipS package.
GZDIFF(1)
This may be the 3rd time I'm posting this question. I'm so new here that I'm not even sure how to post!
I'm trying to compare two files but can't do a line by line comparison so comm and diff are out. I've been told that I would need to use the awk programing language. I've looked up what I... (14 Replies)
Hi all
I wrote this, and am very new to PERL. Could someone show me what i might be doing wrong?? Here is my code:
open(DATA1,"ping1.txt");
open(DATA2,"ping2.txt");
$data1 = <DATA1>;
$data2 = <DATA2>;
while ($data1 || $data2) {
next if !strcmp($data1,$data2);
print "<DATA1";
... (14 Replies)
Hello all,
I have two files, that I suspect may contain hidden characters (EG, three spaces instead of a tab). Does anyone know of any tool that can display this (I have tried using diff, but I'm not quite sure it would do the job) (6 Replies)
First off thank you for any help.
Here is the problem. I have two text files that fit the same format. The first I created using an ls -d command and then with the help of the forums ran awk resulting in the fallowing output.
W00CHZ0103345-I1CZ44
W00E6S1016722-I01JW159... (8 Replies)
Hi,
i need to display the mismatches from two files.The output what is get is the entire rows which mismatch from file 1 are displayed first and the corresponding rows from file 2 are displayed below it.
Sample output:
From Test Run 1 - The row count of file2.txt is 23
From Test Run 1 -... (9 Replies)
HI
I need to concatenate two files which are having headers. the result file should contain only the header from first file only and the header in second file have to be skipped.
file1:
name age
sriram 23
file2
name age
prabu 25
result file should be
name age
sriram 23
prabu ... (6 Replies)
I have made several attempts to read two files of ip addresses and eliminate records from file1 that are in file2.
My latest attempt follows. Everything works except my file3 is exactly the same as file1 and it should not be.
# !/usr/bin/bash
#
# NoInterfaces
# Utility will create a file... (8 Replies)
hi i have two files and i want to compare both the files and find out mismatch in 3rd file
file1
00354|1|0|1|1|0|0|0|1|2
52424|1|0|1|1|0|0|0|1|2
43236|1|0|1|1|0|0|0|1|2
41404|1|0|1|1|0|0|0|1|2
79968|1|0|1|1|0|0|0|1|2
file2
00354|1|0|1|1|0|0|0|1|2
52424|1|0|1|1|0|0|0|0|2... (9 Replies)
I have 2 files
diff.txt
0x21
0xc0a80129
0xc0a80101
0xc0a80108
and abc.txt
0x21
0xc0a80101
0xc0a80108
0xc0a80129
I want to compare these 2 files.
The code that I have so far is
counter=1
exec 4< diff.txt
while read -u4 line
do
grep "$line" abc.txt 1>/dev/null (7 Replies)
Hi Im supposed to compare lines in a file :
KB0005 1019 T IFVATVPVI 0.691 PKC YES
KB0005 1036 T YFLQTSQQL 0.785 PKC YES
KB0005 1037 S FLQTSQQLK 0.585 DNAPK YES
KB0005 1045 S KQLESEGRS 0.669 PKC YES
KB0005 1045 S KQLESEGRS 0.880 unsp YES
KB204320 1019 T IFVATVPVI 0.699 PKC YES
... (7 Replies)
Hi,
When I run the diff command using diff -yt file1 file2, I get the output in which original lines are truncated.
I tried using -W switch with diff. However, that does not produce exact output as I want. Is it possible to show entire line of file1 and file2 in diff command's output?
... (8 Replies)
Hi All,
I want to write a script which will compare two files and tell me if the files are different.
Actually my files will be same but order of lines will be different,so diff is not working.
I have written a script to do this:-
while read line; do
cnt=`grep -i $line... (6 Replies)
Hi
I am very happy to joined this group!!!
I need your suggestion for get it resolved my issue.
I have two class files both class files are same, there is no diff in both two files. Both 2 files were compiled in Linux environment with different type of OS.
When i am using diff command,... (13 Replies)
Greetings.
I like to compare two lists of numbers, A.txt and B.txt, to see the numbers that are in B.txt but not in A.txt. I only need the "deletions" with reference to A.txt. Using the diff command doesn't work because it considers too many of the deletions just changes because they are a... (7 Replies)
Dear Experts,
Am using nmon analyser version 3.3g, and when i tried analyzing my current nmon file it was done successfully. But the problem is all my old nmon files are compressed. So i uncompressed and analyzed using the same analyzer. but got this error
no valid input data! nmon run may... (8 Replies)