Review your favorite Linux distribution.
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 05-14-2006, 01:03 PM   #1
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Rep: Reputation: 31
Visually Compare File Program

hi all,

i'm looking for a program that will allow me to load two files and visually compare them. differences are highlighted for easy recognition.

if that doesn't exist, i'd like aprogram that will tell me what lines are different.

i have two scripts that should be the same, but yield different results when processed - so something is different.

i'd like to find out what is different w/o going line by line.

Old 05-14-2006, 01:07 PM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Use the diff command. If you need a gui, you can install kdiff.
Old 05-14-2006, 01:09 PM   #3
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127

Rep: Reputation: 15
diff should do it.

If by visually, you mean in the GUI, then I'm not sure. But give diff a try!
Old 05-14-2006, 01:09 PM   #4
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127

Rep: Reputation: 15
Ah shoot too slow.
Old 05-14-2006, 03:37 PM   #5
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Many diff front-ends
Old 05-14-2006, 06:53 PM   #6
Valdis Grinbergs
Registered: Dec 2005
Distribution: Debian
Posts: 30

Rep: Reputation: 25
There are several good diff programs. I recommend vimdiff. If you have vim, try from the bash prompt: vimdiff file1 file2
It highlights lines in one file not in the other and highlights lines that differ. Highlights are in different colors. Copying one or more lines from one file to the other is easy with [range]diffget or [range]diffput. To learn more, open vim and type :help vimdiff


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
PDF Compare Program bauer172uw Linux - Software 0 02-07-2006 03:46 PM
mass file compare or diff mijohnst Linux - Software 11 01-27-2006 07:32 AM
Compare two .doc file in c++ program Megasms Programming 2 11-04-2005 10:14 PM
What book(s) should I read to learn how to write a program for the visually impaired? Dreamcast Linux - Newbie 7 08-23-2004 02:32 AM
file compare program Nyc0n Linux - General 4 08-18-2001 10:08 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:54 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
Open Source Consulting | Domain Registration