Can I output a simple text file of lines which are different
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.
psguru
PrestoSoft
PrestoSoft
diff text
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
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
It isn't pretty being easy
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.
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.
Last edited by psguru on Thu Nov 02, 2006 7:17 pm, edited 1 time in total.
psguru
PrestoSoft
PrestoSoft