什么是Windows等效的diff命令? [英] What is the Windows equivalent of the diff command?

查看:210
本文介绍了什么是Windows等效的diff命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有类似这样的帖子:这里

我尝试使用 comp 命令,如果我有两个文件,一个有数据像abcd,另一个用数据abcde,它只是说文件是不同的大小。我想知道他们在哪里不同。在Unix中,简单的diff告诉我哪个行和列,Windows中的comp命令如果我有像abd和abc的东西工作。不是其他。任何想法我可以用于这个?

I know that there is a post similar to this : here.
I tried using the comp command like it mentioned, but if I have two files, one with data like "abcd" and the other with data "abcde", it just says the files are of different sizes. I wanted to know where exactly they differ. In Unix, the simple diff tells me which row and column, the comp command in windows works if I have something like "abd" and "abc". Not otherwise. Any ideas what I can use for this?

推荐答案

FC file1 file2

也可用于二进制文件:

FC /B file1 file2

这篇关于什么是Windows等效的diff命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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