Solved

compare two text files

Posted on 2011-03-18
7
560 Views
Last Modified: 2012-05-11
Dears
I'm looking for powerful and free application to compare two text files on mac
for example com the contents of  file1.txt and file2.txt and highlight the differences side be side

you advice please...
thanks  
0
Comment
Question by:nmokhayesh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 7

Accepted Solution

by:
Piloute earned 21 total points
ID: 35165985
HI,

There's lots of software that do what you want to. Check this list (look for apple icon) :
http://alternativeto.net/software/winmerge/

Cheers,
P
0
 
LVL 3

Assisted Solution

by:olliefelde
olliefelde earned 21 total points
ID: 35166169
I've found this program to be useful. It's called TextMate and is free to try:

http://download.cnet.com/TextMate/3000-2079_4-53602.html?tag=mncol;1
0
 
LVL 8

Assisted Solution

by:et01267
et01267 earned 21 total points
ID: 35166289
The same items (emacs, xcode, eclipse) I listed in your other question (about code editors) also can do text compare and merging.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 4

Assisted Solution

by:leewv1
leewv1 earned 21 total points
ID: 35169417
You could use the diff command in terminal.  diff will give you a line by line difference between 2 files. Type man diff on how to use it.  I created a  simple text file with 6 lines and then copied the file to file2 and appended a number to three lines.  Here are the results using the diff -y option

diff -y file1 file2
A                                                A
B                                                |      B1
C                                                C
D                                                |      D2
E                                                E
F                                                |      F3
G                                                G

Each column is a file.  The command places a pipe next to the line where there is a difference.  Try it.
0
 
LVL 3

Assisted Solution

by:rkharko
rkharko earned 20 total points
ID: 35178499
You can use a Google Docs feature to compare text files online from the web
see the instructions here
http://www.labnol.org/internet/tools/google-docs-free-online-file-comparison-software/2414/
0
 
LVL 19

Assisted Solution

by:Thommy
Thommy earned 21 total points
ID: 35186885
For Windows in my opinion there is no better free tool than WinMerge!!!
http://winmerge.org/

Here are some alternative tools for MAC...
http://alternativeto.net/software/winmerge/?platform=mac
0
 

Author Closing Comment

by:nmokhayesh
ID: 36710175
ok
0

Featured Post

To Patch or not to Patch? That is the question!

Don't get caught out like thousands of others around the world in the recent Ransomware Fiasco!
Discuss..
- Why it's not a good idea to wait before Patching
- Sensible approaches to Patching discussed
- Add your feedback, comments and suggestions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
exchange support of mac 2 84
Mac neophyte...printer issue... 13 124
Windows 8 rebooted without shutting down first error message 11 123
2012 R2 System Address Space? 2 81
I wrote an article (http://www.experts-exchange.com/articles/2245/Anti-rootkit-software.html) some time ago with a reference to nLite  (http://www.nliteos.com/)slipstreaming software.  I recently changed that link to point to NTLite (https://www.ntl…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question