Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

how to compare contents of two similar text files

two or more text files of the same name were edited several times.
How do we compare the contents of the files without reading through hundreds of lines of text?
0
AMixMaster
Asked:
AMixMaster
3 Solutions
 
Missus Miss_SellaneusCommented:
check out comp. Go to a command prompt and type the following for usage:

comp /?

You can direct output to a text file to see the results using ">" or ">>".
0
 
Dave BaldwinFixer of ProblemsCommented:
For Windows, I recommend Winmerge.  It will highlight the differences for you.  http://www.winmerge.org/
0
 
Joe Winograd, EE MVE 2015&2016DeveloperCommented:
I've been using an excellent file manager called Total Commander for many years:
http://www.ghisler.com/

One of its many features is the ability to compare two text files. Using the beginning of this post as an example (with an intentionally missing line, extra line, and a changed line), here's what the comparison results look like:

TC compare results
I use this feature so often that I assigned an icon to it and placed it on the Button Bar:

TC Button Bar - compare files by content
It is not free, but it is among the best 46 dollars (USD) that I've ever spent. Well, I probably spent less many years ago when I bought it (and all upgrades have been free), but that's what a personal license costs today. Also, the personal license grant is generous. Here's a quote:

"The registered version may be installed on as many computers as desired, as long as it is used by only one person at any one time (I.e. one installation at home and one at the office used by the same person). Therefore you need only one licence for a port connection between two computers. The usage by multiple people at the same time (on multiple computers) requires additional licences."

Furthermore, it is shareware, and you may download a fully functional version to see if it works for you before making a purchase.

The product does lots of other stuff, but I have limited my response to addressing just your issue. Btw, the support is fabulous. When I send an email to tech support, I always get a prompt, accurate answer. In more than a decade of using this file manager, from Windows 95 through my current 64-bit W7 and W8, it has never messed up a file.

As a disclaimer, I want to emphasize that I have no affiliation with this company and no financial interest in it whatsoever. I am simply a happy user/customer. Regards, Joe
0
 
AMixMasterAuthor Commented:
Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now