Solved

How to compare two large text files

Posted on 2011-09-06
5
299 Views
Last Modified: 2012-05-12
Hi,
I have to compare two large text files like 15mb to 25 mb.

Cheers
0
Comment
Question by:RIAS
5 Comments
 
LVL 18

Assisted Solution

by:Cluskitt
Cluskitt earned 166 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.
0
 
LVL 38

Accepted Solution

by:
BillDL earned 167 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:
http://www.scootersoftware.com/
but it might be overkill for your needs.
0
 
LVL 95

Assisted Solution

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

Author Closing Comment

by:RIAS
ID: 36491792
Cheers mates!!
0
 
LVL 38

Expert Comment

by:BillDL
ID: 36493904
Thank you RIAS.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

713 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