LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2005, 01:47 AM   #1
riluve
Member
 
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142

Rep: Reputation: 15
Beyond Compare / WinDiff


Is there a good Linux alternative for these programs? Their basic function is to compare text files side by side.

Oh, I think Multi-Edit has a good compare function - is there a Linux ME?

Last edited by riluve; 01-26-2005 at 01:49 AM.
 
Old 01-26-2005, 02:00 AM   #2
friend3141
Member
 
Registered: Jan 2005
Posts: 34

Rep: Reputation: 15
Try this out..
http://xxdiff.sourceforge.net/
 
Old 01-26-2005, 03:25 AM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Have you looked at the available options for diff? It is extremely flexible and includes the --side-by-side option.
Code:
$ diff --side-by-side test.c test2.c 
#include <stdio.h>                                              #include <stdio.h>

int main()                                                    | int main(int argc, char *argv[])
{                                                               {
  printf( "Hello World!\n" );                                     printf( "Hello World!\n" );
                                                              >   if( argc > 1 )
                                                              >     printf( "You entered %s as an argument.\n", argv[1] );
  return 0;                                                       return 0;
}                                                               }
It may not be the prettiest you've ever seen, but it is available (along with tons of other options to control what's reported).

Last edited by Dark_Helmet; 01-26-2005 at 04:15 AM.
 
Old 01-26-2005, 03:50 AM   #4
friend3141
Member
 
Registered: Jan 2005
Posts: 34

Rep: Reputation: 15
xxdiff is only the GUI.
It can use any external search programs like "diff" or any other external program.
So all the options of "diff" will be available plus pretty.
 
Old 01-26-2005, 04:14 AM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
That was my mistake. The "you" in my first sentence was directed at riluve. I just wanted to point out diff does have the ability to compare text files side-by-side, and that the man pages should be checked for any other options that might be useful. Sometimes people go looking for a replacement when there's no need, but there are times when the basic tool doesn't fit the bill. The only way to know for sure is to read up on what the tool is capable of.
 
Old 01-26-2005, 04:22 AM   #6
friend3141
Member
 
Registered: Jan 2005
Posts: 34

Rep: Reputation: 15
you said it!

Eventhough the cmd line tools have longer learning curve, you would really appreciate it later...

Long live linux
 
Old 01-26-2005, 09:05 AM   #7
riluve
Member
 
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by friend3141
you said it!

Eventhough the cmd line tools have longer learning curve, you would really appreciate it later...

Long live linux
LOL - well thnx guys I appriciate it. Not to be contrary though - just seriously honest - Beyond Compare has such features that 95% can not be done with a cmd line tool. Yes, OK, I am spoiled, but it's like comparing Windows XP with DOS, its just wrong at a fundamental level. Windiff is a different story, its just a GUI around a text based application, but Beyond Compare is simply amazing. Windiff is basically what xxdif looks like - i mean - its OK.

Esp with all the text developement that goes into Linux, I am surprised Scooter hasn't done a Linux implementation. It even comes with the recommendation of Gibson Research Corp, which I think is impressive as well. You will find that probably 90% of Assembly development done on in a windows environment is with the aid of Beyond Compare.

OK, so I am sure I sound like a fanboi - but Beyond Compare is the Doom3 of text editing/development. Asking someone to not use Beyond compare is like asking a dentist to use whisky for an anistetic. Its simply barbaric.

I guess I am saying - dang I want to start a campaign for a Linux BC.
http://www.scootersoftware.com/home.php

Last edited by riluve; 01-26-2005 at 09:06 AM.
 
  


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
how to compare decimals linuxboy69 Linux - Software 2 08-16-2004 03:43 PM
How to Compare the c/c++ codes muneebs123 Programming 4 02-19-2004 01:53 AM
Need to compare 2 databases. Help please! morbid_ru Programming 1 12-08-2003 05:16 PM
need help on compare tool ski_nm Programming 3 12-04-2003 01:59 PM
hosts.compare? WeNdeL Linux - Newbie 0 01-17-2003 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration