DIFF实用程序适用于2个文件。如何一次比较两个以上的文件? [英] DIFF utility works for 2 files. How to compare more than 2 files at a time?

查看:154
本文介绍了DIFF实用程序适用于2个文件。如何一次比较两个以上的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,实用程序差异就像我想要的2个文件一样工作,但我有一个项目需要一次比较多于2个文件,一次最多可以达到10个。这需要将所有这些文件并排放置在一起。我的研究并没有真正发现任何东西,vimdiff似乎是目前为止能够一次比较4的最佳选择。



我的问题:是否有用于比较一次超过2个文件,或者一种方法来破解diff / vimdiff,以便它可以进行多重比较?我会比较的文件相对较短,所以它不应该太慢。



预先感谢!

解决方案

使用 Diffuse可以轻松完成并排显示10个文件并突出显示不同之处。只需在命令行中指定所有文件,如下所示:



diffuse 1.txt 2.txt 3.txt 4.txt 5.txt 6.txt 7.txt 8。 txt 9.txt 10.txt

So the utility Diff works just like I want for 2 files, but I have a project that requires comparisons with more than 2 files at a time, maybe up to 10 at a time. This requires having all those files side by side to each other as well. My research has not really turned up anything, vimdiff seems to be the best so far with the ability to compare 4 at a time.

My question: Is there any utility to compare more than 2 files at a time, or a way to hack diff/vimdiff so it can do multiple comparisons? The files I will be comparing are relatively short so it should not be too slow.

Thanks in advance!

解决方案

Displaying 10 files side-by-side and highlighting differences can be easily done with Diffuse. Simply specify all files on the command line like this:

diffuse 1.txt 2.txt 3.txt 4.txt 5.txt 6.txt 7.txt 8.txt 9.txt 10.txt

这篇关于DIFF实用程序适用于2个文件。如何一次比较两个以上的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆