Solved

compare two text files

Posted on 2011-03-18
7
554 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Create a default user profile for Mac OS X 10.7/10.8 Create a user account on OS X that will be a template for every other user of that computer. I usually call it “profile” and make it an administrator account for the time being. 1. Install a…
A lot of new and distinct gadgets are making their appearance every other day. The latest gadget that has wooed the attention of all gadget lovers and non gadget lovers alike is the Smartwatch. This tiny gadget is capable of offering live access to …
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 > …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now