DIFF实用程序适用于2个文件。如何一次比较两个以上的文件? [英] DIFF utility works for 2 files. How to compare more than 2 files at a time?
问题描述
我的问题:是否有用于比较一次超过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屋!