标题: [文本处理] 批处理如何对比2个txt文件并取出不同的地方? [打印本页]
作者: keol 时间: 2017-4-24 00:31 标题: 批处理如何对比2个txt文件并取出不同的地方?
我用md5sums获取了2个目录。想对比出哪个文件是不同的。
获得了log1.txt log2.txt
想对比这2个文件 对比出d3dcompiler_43.dll的不同
然后 echo d3dcompiler_43.dll >list.txt
log1.txt- MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
- Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
- Type md5sums.exe -h for help
-
- [Path] / filename MD5 sum
- -------------------------------------------------------------------------------
- [X:\xxxx\]
- .stfolder d41d8cd98f00b204e9800998ecf8427e
- .stignore 7649ea01a55fd7623bf33fc60fdf85e8
- BugTrap.dll 7d828acda03e09072dfff02ddc81cb48
- cef.pak aa2956c5e**a4524eac5b43a5795b0
- Config.ini 0cf97976b7a336d5528041b389138df6
- CrashReporter.dll 3a9eb1e15fa95a1dcecf9d95bb61a22b
- cudart32_30_9.dll 404f5e87ea3b18ec38d1cce05cdff657
- D3DCompiler_42.dll b33b21db610116262d906305ce65c354
- d3dcompiler_43.dll 1c9b45e87528b8bb8cfa884ea0099a85
- d3dcompiler_46.dll 75895a5668a43f7b8d3cf1f57e937bbe
复制代码
log2.txt- MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
- Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
- Type md5sums.exe -h for help
-
- [Path] / filename MD5 sum
- -------------------------------------------------------------------------------
- [X:\xxx\]
- .stfolder d41d8cd98f00b204e9800998ecf8427e
- .stignore 7649ea01a55fd7623bf33fc60fdf85e8
- BugTrap.dll 7d828acda03e09072dfff02ddc81cb48
- cef.pak aa2956c5e**a4524eac5b43a5795b0
- Config.ini 0cf97976b7a336d5528041b389138df6
- CrashReporter.dll 3a9eb1e15fa95a1dcecf9d95bb61a22b
- cudart32_30_9.dll 404f5e87ea3b18ec38d1cce05cdff657
- D3DCompiler_42.dll b33b21db610116262d906305ce65c354
- d3dcompiler_43.dll f20ac5168befc10038a0781a208a6f33
- d3dcompiler_46.dll 75895a5668a43f7b8d3cf1f57e937bbe
复制代码
作者: taofan712 时间: 2017-4-24 22:18
善用论坛搜索
作者: 老刘1号 时间: 2017-4-24 22:26
本帖最后由 老刘1号 于 2017-4-24 22:28 编辑
- FC log1.txt log2.txt >Diffrent.Txt
- START "" /MAX Diffrent.Txt
复制代码
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |