Page 2 of 2

Posted: Thu Nov 02, 2006 4:50 pm
by psguru
Perhaps there's some confusion here. ExamDiff Pro does produce the standard UNIX diff output. The original poster wanted something different.

Posted: Thu Nov 02, 2006 5:08 pm
by davidla
Perhaps there is, I don't know what the standard unix diff output is, but what I want is a clean diff file with just the differences output - nothing else. Is this possble.
In hope,

David

Posted: Thu Nov 02, 2006 5:18 pm
by psguru
Standard Unix diff format contains only differences but it's format may look tricky at first. However, it allows you to later use the PATCH utility to apply differences to the first file so that it becomes the second file. This way you can only store one base file and a set of diff files, just like many version control systems do.

diff text

Posted: Thu Nov 02, 2006 5:28 pm
by davidla
Let me ask my question a different way.

Here is text file 1

Line1
Line4
Line5

Here is text file 2

Line1
Line2
Line3
Line4
Line5

The output required is

Line2
Line3

IE the differences, i dont care about the original source files, only the difference. Can your program produce the output exactly as shown here, nothing else, no line number information, greater than symbols, nothing - just the differences.

David

Posted: Thu Nov 02, 2006 5:45 pm
by psguru
Not directly and not from command line. For the GUI solution see the reply by Farrillaga in this thread.

I just want you to understand that there exist formats that describe diffs and are standard, i.e. understood by many users and software alike. If we start introducing new formats, virtually no one will understand them.

Posted: Thu Nov 02, 2006 5:52 pm
by davidla
Hmm, I'm not looking for a change of standards, I'm looking for an answer to a problem, you can't provide it, I'll look elsewhere. No problem.

Perhaps I'll introduce a new standard 2-1 = 1

Thanks