LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-01-2010, 12:12 PM   #1
saawan
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)?

-Thanks
 
Old 03-01-2010, 12:16 PM   #2
GrapefruiTgirl
Guru
 
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.

Sasha
 
Old 03-01-2010, 12:29 PM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,503

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, 08:47 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

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

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


Reply


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 10: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 01:39 PM
LXer: Side by side comparison of Firefox 3 and firefox 2 with pics LXer Syndicated Linux News 0 11-27-2007 01:11 AM
"catting" files in one file side by side, not among each other indyn00b Programming 5 05-10-2007 01:05 AM
LXer: Top Linux photo managers side-by-side LXer Syndicated Linux News 0 12-14-2006 06:33 PM


All times are GMT -5. The time now is 12:06 AM.

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