Saari Development

Ali Rizvi's Technical Blog as a Professional Software Development Engineer

*nix: Comparing two files

with one comment

Everybody knows about diff.

I read about sdiff today for side by side diff.

Here is the one I found useful in some cases but I forget it so I am saving it here:

cmp – compare two files

cmp [-l | -s] file1 file2 [skip1 [skip2]]

The cmp utility compares two files of any type and writes the results to
the standard output. By default, cmp is silent if the files are the
same; if they differ, the byte and line number at which the first differ-
ence occurred is reported.

May be I will add some examples to show the difference but later.


Written by imsaar

February 23, 2009 at 10:18 pm

Posted in linux/unix

One Response

Subscribe to comments with RSS.

  1. Just passing by.Btw, you website have great content!

    Don’t pay for your electricity any longer…
    Instead, the power company will pay YOU!


    March 2, 2009 at 4:19 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: