本文介绍了如何在Windows中比较两个csv文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要比较Windows7中的两个csv文件。
我如何继续实现这一目标。我想看看两个文件之间的差异,就像我们可以在Linux中使用tkdiff一样。
I need to compare two csv files in windows7.How can I proceed to achieve this. I want to see the differences in both the files , like we can use tkdiff in Linux.
推荐答案
建议:
- 按 + 快捷方式以打开Windows的运行提示
- 键入
cmd
并按打开 cmd窗口 - 通过运行命令
cd C:\path\to\your\directory
更改当前路径,以到达两个CSV文件的位置
- Press + shortcut to open windows' Run prompt
- Type in
cmd
and press to open a cmd window - Change the current path by running the command
cd C:\path\to\your\directory
to reach the location of the two CSV files
cmd窗口,您可以(1)右键单击终端窗口,或(2)按 + 。
cmd window, you can either (1) right-click on terminal window, or (2) press +.
- 最后,要比较两个文件,请运行
fc filename1.csv filename2.csv> outfile.txt
(fc
代表文件比较)。
该命令还将比较结果记录到位于同一文件夹中的文本文件outfile.txt
。如果outfile.txt
不存在,它将自动创建。
- Finally, to compare the two files, run
fc filename1.csv filename2.csv > outfile.txt
(fc
stands for "file compare").
The command will also log the result of comparison into a text fileoutfile.txt
located in the same folder. Ifoutfile.txt
doesn't exist, it will be created automatically.
这篇关于如何在Windows中比较两个csv文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!