winmerge 简单使用

如果你一直在其中的情况下你需要比较两个大型文字的文件或文件夹然后本教程是给你的。在这个例子中,两个几乎相同的文本文件,我会向你展示如何确定的路线有错。

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 ,因为它运行在Windows ,它可以让您合并的内容您的文件(即要使用较新版本的文字档案)。

You can begin comparing two files by going to the Open menu:您就可以开始比较两个文件要打开菜单:

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.epj2.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.最左边的一方,所谓的位置窗格中,包含一个缩放地图的文本文件在那里你可以看到三黄线的相对位置不匹配的。这是非常实用,您可以浏览到错位迅速。您可以点击任何部分的位置窗格跳到那部分文件。

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:为人民工作的UNIX脚本,白色的空间是很重要的。您可以使用查看空白选项,可以查看的空白。白色的空间将显示为一剔样性质:

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.如果你的老板或程序(即UNIX的脚本)是敏感的空格,这是一个极好的工具,以确定那些看不见的空间。

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.它易于使用,并且要善于足以满足大多数文件和文件夹比较。这是合并的能力也有助于作家谁最需要使用新版本的某一部分的文件。

 

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值