Skip to content

How to compare two files and output the difference in Windows 7?

edited October 2014 in Need Help
I need a Windows tool which can compare 2 files in .txt format and output the difference. It should also work with large files. Example below:

Text1.txt
Apple 
Orange
Banana

Text2.txt
Apple
Orange
Banana
Lemon

Output.txt
Lemon

So how could I do this in Windows without using that "grep" tool which is Linux thing? I am also working with large files 100k rows. 
I tried this but it couldn't load my files properly: http://www.sobolsoft.com/comparetextline Also textmechanic.com doesn't seem to have this kind of tool.

Comments

  • donaldbeckdonaldbeck Advanced SER Videos -> http://bit.ly/1ySrbwu | Learn SER For Free Step By Step -> http://sertips.com
    Install 64 bit cygwin -> grep things -> profit.
  • ScrapeBox -> Select the URL list to compare
  • edited October 2014
    Thx both of you! I ended up using Scrapebox list to compare option, because don't have time learning cygwin. Problem is that I am comparing two files with text strings and are not URLs. Scrapebox is only accepting URLs when importing. Had to add suffix .com at the end of each line with textmechanic.com and then import them into Scrapebox. After comparing I had to remove .com sufix again. A lot of babysitting for simple task as this. Really weird that nobody came up with simple tool on Windows which can handle big files and we are in 21th century.
  • 1linklist1linklist FREE TRIAL Linklists - VPM of 150+ - http://1linklist.com
    Donalds more right than Fusser. Though Fussers right to.

    Learn Cygwin. You can google it, figure it out in 2-3 hours, and never look back.

    Scrapebox can handle 1 million urls. Cygwin can handle.. well I dont know the limit, Lets say 900 million? It can also do the same job in seconds, rather than 45 minutes.
  • edited October 2014
    Thx all for your suggestions. Will definitely learn Cygwin, but now I don't have much time. For anybody looking similar solution my coder shared this PHP script for free: http://www.blackhatworld.com/blackhat-seo/php-perl/713950-share-compare-two-files-find-difference-php-script.html 

    *Copy/paste link in your browser because gsa forum redirects to BHW homepage.

Sign In or Register to comment.