How to compare two large text files

Posted on 2011-09-06
Medium Priority
Last Modified: 2012-05-12
I have to compare two large text files like 15mb to 25 mb.

Question by:RIAS
LVL 18

Assisted Solution

Cluskitt earned 664 total points
ID: 36487468
If you want to do it manually, you can always use winmerge. It's a free utility that will compare files and easily show you the differences between them.
LVL 39

Accepted Solution

BillDL earned 668 total points
ID: 36487991
WinMerge is an excellent utility.  There are other's that do similar jobs also, such as the free version of ExamDiff (http://www.prestosoft.com/edp_examdiff.asp).
Command line options you can call it with, but it will still open in the GUI and you can easily reset the options and it reloads and compares with changed options:
Command Line Options:

ExamDiff [Filename1] [Filename2] [Options]

/i    ignore case
/w    ignore all white space in lines
/b    ignore changes in amount of white space in lines
/l    ignore leading white space in lines
/e    ignore trailing white space in lines
/t    treat both files as text files
/d    show differences only
/n    don't show initial "Compare Files" dialog
/sd   always show initial "Compare" dialog, even if two filenames used
/aN   scroll trough all differences with N second delay 
      and exit after the last difference
/?,/h print this screen

NOTE: if options /i, /w, /b, /l, /e, /t, or /d are not set, the last used options remain in effect.

Open in new window

I use the retail "Pro" version of the application named BeyondCompare:
but it might be overkill for your needs.
LVL 97

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 668 total points
ID: 36488582
Check out BeyondCompare - 30 day trial available.

Author Closing Comment

ID: 36491792
Cheers mates!!
LVL 39

Expert Comment

ID: 36493904
Thank you RIAS.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
This article describes and provides a custom-made tool I wrote to give businesses a means of identifying commercial music content, without having to expend too much effort. Business recordings are easily identified from possibly illegal music files …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Simple Linear Regression

622 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