Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Search this Thread
Old 03-01-2010, 01:12 PM   #1
LQ Newbie
Registered: May 2009
Posts: 5

Rep: Reputation: 0
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)?

Old 03-01-2010, 01:16 PM   #2
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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.

Old 03-01-2010, 01:29 PM   #3
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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).
Old 03-01-2010, 09:47 PM   #4
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
diff --side-by-side
Old 03-01-2010, 10:00 PM   #5
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,486

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
X11 and TEXT mode dual monitor side by side marius_c Linux - General 0 10-30-2009 11:30 AM
Installing SUSE 11.1 side by side with Ubuntu already installed on a USB drive jjchavez Linux - Laptop and Netbook 2 09-12-2009 02:39 PM
LXer: Side by side comparison of Firefox 3 and firefox 2 with pics LXer Syndicated Linux News 0 11-27-2007 02:11 AM
"catting" files in one file side by side, not among each other indyn00b Programming 5 05-10-2007 02:05 AM
LXer: Top Linux photo managers side-by-side LXer Syndicated Linux News 0 12-14-2006 07:33 PM

All times are GMT -5. The time now is 01:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration