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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-14-2006, 12:03 PM
|
#1
|
Member
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326
Rep:
|
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.
tia...
|
|
|
05-14-2006, 12:07 PM
|
#2
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Use the diff command. If you need a gui, you can install kdiff.
|
|
|
05-14-2006, 12:09 PM
|
#3
|
Member
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127
Rep:
|
diff should do it.
http://maconlinux.net/linux-man-pages/en/diff.1.html
If by visually, you mean in the GUI, then I'm not sure. But give diff a try!
|
|
|
05-14-2006, 12:09 PM
|
#4
|
Member
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127
Rep:
|
Ah shoot too slow.
|
|
|
05-14-2006, 02:37 PM
|
#5
|
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690
Rep:
|
|
|
|
05-14-2006, 05:53 PM
|
#6
|
Member
Registered: Dec 2005
Distribution: Debian
Posts: 30
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 04:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|