Compare and merge two files using WinMerge WinMerge를 사용하여 두 개의 파일을 비교 및 병합

Posted on November 17, 2008 at 5:54 am 11 월 17 일, 2008 게시됨 오전 5:54

If you have been on a situation wherein you need to compare two large text files or folders then this tutorial is for you.  In this example, given two almost identical text files,  I will show you how to determine the lines that have a mismatch. 만약 당신이 상황에왔다 점에서 그렇다면 당신은이 튜토리얼의 두 가지 큰 텍스트 파일이나 폴더를 비교할 필요가 당신을위한 것입니다.이 예제에서는 거의 동일한 텍스트 파일을 두 봤을때, 제가 얼마나 일치 라인을 확인하는 방법을 보여줍니다.

In a manual brute force scenario, this is painstakingly difficult to do especially for large text files.  The free tool is called WinMerge and you can get it from 매뉴얼 무력 시나리오에서는 특히 큰 텍스트 파일이 고심해야 할 어렵다. WinMerge라는 무료 도구와 당신에게서 그것을 얻을 수 http://winmerge.org/ .  It is called WinMerge because it runs in Windows and it lets you merge the content of your files (ie you want to use the newer version of the text file). . WinMerge라는 그것 때문에 윈도우에서 실행하면 파일의 내용을 병합하고있습니다 (텍스트 파일의 최신 버전을 사용하고 싶지) 즉.

You can begin comparing two files by going to the Open menu: 당신은 Open 메뉴로 이동하여 두 파일을 비교하실 수있습니다 :

이미지

You will  be asked to enter the file names.  The file you entered on the left will appear on the left side of the screen while the right will appear on the opposite side.  The idea is to compare the two files side by side: 당신은 파일 이름을 입력하라는 메시지가 표시됩니다. 당신은 왼쪽에서 오른쪽으로 반대쪽에 나타납니다하면서 화면의 왼쪽에 나타납니다 입력 파일입니다. 아이디어 측면 사이드로 두 개의 파일을 비교하는 것입니다 :

이미지

Press ok after entering the filenames.  In this case I entered two files called 1.epj and 2.epj which are plain text files. 파일 이름을 입력한 후 확인을 누르세요. 1.epj 불리는이 사건에서 나는 두 개의 파일을 입력 2.epj는 일반 텍스트 파일입니다.

Once you click OK, it will process the two files quickly and display the side-by-side comparison like below: 확인을 클릭하면, 두 개의 파일을 신속하게 처리하고 - 의해 - 아래와 같은 비교 측면 표시 :

이미지

The leftmost side, called Location Pane, contains a scaled “map” of the text file where you can see 3 yellow lines where the relative position of the mismatches are.  This is very usable so you can navigate to the mismatches quickly.  You can click any part of the Location Pane to jump to that part of the file. 왼쪽 측면, 위치 창, 전화가 어디 어디에 불일치의 상대 위치를 3 노란 선을 볼 수있습니다. 그럼 당신은 신속하게 불일치로 이동할 수있는 아주 쓸만한 텍스트 파일의 크기 "지도"가 포함되어있습니다. 당신은 클릭할 수있습니다 파일의 위치 창의 어떠한 부분도 그 부분으로 이동할 수있습니다.

The main window will show the two files side-by-side and from this interface it is very easy to see where the mismatches are. 메인 창의 -하여 두 개의 파일이 표시됩니다 측면 - 측면 그리고 그것은 매우 쉽게 알수이 인터페이스에서 어디에 불일치가없습니다.

The View menu offers some functionality that you might find useful: 보기 메뉴에서 찾을 수있는 몇 가지 유용한 기능을 제공합니다 :

이미지

For people working with UNIX scripts, the white spaces are important.  You can use the View Whitespace option to be able to view the whitespace.  The white spaces will appear as a tick-like character: 유닉스 스크립트와 함께 일하는 사람들이 들어, 공백이 중요하다. 당신이보기 옵션을 사용할 수있습니다 Whitespace 공백을 볼 수있습니다. 그 공백 문자 - 같은 똑딱로 나타납니다 :

이미지

If your boss or programs (ie UNIX scripts) are sensitive to white spaces, this is an excellent tool to determine where those “invisible” spaces are. 만약 당신의 상사 또는 프로그램 (예 : 유닉스 스크립트)에 민감한 공백이 어디에 그 "보이지 않는"공백이 있는지 확인을위한 훌륭한 도구입니다.

Upon determining the differences, there are times that we need to merge the files.  In this case I can replace the line from the left with the line from the right using the replace buttons: 차이가 결정되면, 거기 번 우리가 파일을 병합할 필요가있다.이 경우에는 라인을 대체할 수있는 전에서 오른쪽에서 왼쪽 라인을 사용하여 버튼을 대체할 :

이미지

You can use the button to replace a line on the left side by the line on the right side (or vice versa). 당신 오른쪽에있는 행 (또는 그 반대로 왼쪽에있는 라인 교체) 버튼을 사용할 수있습니다.

이미지

After clicking the button, the mismatch will disappear (after it “merged” the line): 버튼을 클릭 후, 불일치 (이후 ""라인) 합병 사라질 것입니다 :

이미지

Overall, WinMerge is one powerful dif tool. 전반적으로, WinMerge 달리 만들 하나의 강력한 도구입니다. It is easy to use and should be good enough for most file and folder comparison.  It’s merging capability also helps most writers who need to use a new version of a certain portion of a document. 그것을 사용하는 대부분의 파일과 폴더를 비교를 위해 충분히 잘해야 쉽습니다. 그것은 또한 문서의 특정 부분의 새 버전을 사용할 필요가 대부분의 작가 도움이 기능을 병합.

Ben Carigtan writes about technology, computers, websites and how to get the best out of them. 벤 Carigtan 기술에 대해 쓰고, 컴퓨터, 웹 사이트와 어떻게 그들의 가장 좋은 치료를 받게했다.

Enjoyed this post? 이 게시물을 잘했나? Subscribe to Online Tech Tips via 온라인 테크 팁을 통해 구독 신청 RSS Feed RSS 피드 or via 또는를 통해 Email 이메일 and receive free daily productivity tips. 무료 일일 생산성 팁을받을 수있다.

» Filed Under »출원에서 Computer Tips 컴퓨터 팁

맛있는에 추가 Save this page 이 페이지를 저장 그것 Mixx Stir it up on Mixx Mixx에 올려 파문
reddit Add to Reddit reddit에 추가 StumbleUpon Stumble this page 이 페이지를 더듬다

Related Posts 관련 게시물

One Response to “Compare and merge two files using WinMerge” 한 반응 "WinMerge를 사용하여 두 개의 파일을 비교 및 병합"

  1. restful web 평안한 웹 said on : 에있다 :

    WinMerge is a must-have tool for me, especially when working with shared version control systems like subversion or CVS. WinMerge - 나를 위해, 특히 파괴하거나 공유의 CVS 버전 제어 시스템과 같은 작업 도구가 필요합니다. Saves me a lot of time. 둘만의 시간을 많이 절약할 수있습니다.

    One of its best features is the ability to compare two directories. 가장 큰 특징 중 하나는 능력이 두 디렉토리를 비교하는 것입니다. That’s great when you have a bug-fix branch that needs to be merged with the development branch. 그 때 버그 - 수정이 필요한 지점 지점 개발과 통합해야 잘됐다.


    Please post your comments/suggestions! 귀하의 의견을 게시하시기 바랍니다 / 제안!