Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
37
rated 0 times [  37] [ 0]  / answers: 1 / hits: 45653  / 1 Year ago, wed, february 8, 2023, 11:46:31

Possible Duplicate:

File and directory comparison tool?






Is there any software available on Ubuntu12.04 to compare two gedit text files for the differences between them. I have two CSS text files with me that i want to compare for the difference.


More From » 12.04

 Answers
1

The classical Un*x way of doing that is diff:



diff file1 file2


A more visual way for vim users is to do vimdiff:



vimdiff file1 file2


Finally, there is diffuse:



sudo apt-get install diffuse
diffuse file1 file2


Here is an example diffuse window:



enter image description here



You clearly see the differences between the two text files. Using the blue arrows on the top that go up or down you can move between the differences found. The blue arrows on the top that go left and right can be used to move the text from left to right and the other way round. The icons with two little blue arrows are used to merging the two files.



If you double click, you can directly edit the text.



Just to make life more interesting, you will get an upvote if you guess correctly what is this data in the above picture :-)


[#35437] Thursday, February 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wheance

Total Points: 314
Total Questions: 96
Total Answers: 112

Location: Benin
Member since Thu, Aug 12, 2021
3 Years ago
;