1
vote
0answers
40 views

How to only add lines using patch?

I'd like to be able to use diff & patch in order to write new lines to a file. To clarify what I mean a bit: Original file: test1.repo exclude=mongo* exclude=sqlite* ...
2
votes
1answer
79 views

How to diff part of a file

I want to diff only the first line of two files, as opposed to the entire file. How would I do that? I only need a solution for the the first line, but if you could specify the number of lines that ...
0
votes
1answer
32 views

How can I get a diff-like comparison of two files without the “change” sections?

I have two files that I would like to compare in terms of additions and deletions only. For example, if I diff these two files: start old old old end and: start old old but now new new new end I ...
1
vote
1answer
163 views

How can I compare two files, from a website, on the command line?

I need to do the following: Basically, I want to be able to compare two text (or text-equivalent, i.e. not binary) files which are held on a website, e.g.: ...
1
vote
2answers
542 views

How to open local files for diffing in Kompare from command line?

When I use meld to obtain visual diff, I can merely run this from the command line: $ meld file1.txt file2.txt ... and meld starts, loads each file in a separate subwindow, and shows the ...
0
votes
2answers
704 views

Is there a tool to measure file difference percentage?

I am looking to compare two text files. Normally, I can just use diff to compare the two files to see the differences. This is great, except that I am more concerned with the percentage difference of ...
7
votes
4answers
6k views

How to diff directories for different files, but not line-by-line

I want to see, recursively, files that are different in two directories. Diff can do this, but it shows me the line-by-line differences, which I don't want. Is there a tool that does this, or a way to ...
2
votes
3answers
2k views

How can I get diff to show only added and deleted lines

How can I get the unix command diff show only added and deleted lines? If diff can't do it, what tool can?
4
votes
3answers
6k views

Windows Command Line Binary Diff Tools

does anyone know of any windows command line diff tools that are free? I need to compare two binary files and see if they are different or not. Im not interested in how they are different i just need ...