?
Solved

How to compare two large text files

Posted on 2011-09-06
5
Medium Priority
?
311 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
[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
5 Comments
 
LVL 18

Assisted Solution

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

Accepted Solution

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

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 668 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses
Course of the Month8 days, 3 hours left to enroll

765 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