LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   diff file to side-by-side comparison (https://www.linuxquestions.org/questions/linux-software-2/diff-file-to-side-by-side-comparison-792377/)

saawan 03-01-2010 12:12 PM

diff file to side-by-side comparison
 
folks; is there a linux tool that can either reads from diff generated file and shows the as side-by-side diffs OR reads diff file and create files for side-by-side difference (in some tool)?

-Thanks

GrapefruiTgirl 03-01-2010 12:16 PM

Depending what you have installed for a DE (Desktop environment) on your system, you might have xfdiff4 (I think that's the name; it might be xfdiff or xf4diff too) or Kdiff on KDE environment.
Also, the plain old commandline `diff` command can give you a side-by-side display too, though not quite as usefully as the GUI versions can (i.e. the two sides cannot be scrolled "in async" with each other). Check the man-page for `diff` as there are several switches you can give it to produce a side-by-side output.

Sasha

colucix 03-01-2010 12:29 PM

I'd add tkdiff to the list. It requires Tcl/Tk but I find it very reliable on most systems (from older unix machines to recent distros).

chrism01 03-01-2010 08:47 PM

diff --side-by-side

syg00 03-01-2010 09:00 PM

From the question, I'd assume the OP doesn't have the opportunity to pick a tool. I guessing [s]he has a diff file - only.
A quick sed to change "^>" to "\t\t\t\t\>" might suffice.


All times are GMT -5. The time now is 05:13 AM.