Solved

How to compare two large text files

Posted on 2011-09-06
5
291 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
Comment Utility
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:
Insignificant Volunteer earned 167 total points
Comment Utility
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
Comment Utility
Check out BeyondCompare - 30 day trial available.
0
 

Author Closing Comment

by:RIAS
Comment Utility
Cheers mates!!
0
 
LVL 38

Expert Comment

by:Insignificant Volunteer
Comment Utility
Thank you RIAS.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

762 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

5 Experts available now in Live!

Get 1:1 Help Now