unix diff命令问题
我有两个文件。我想使用 diff 来比较它们,看看发生了什么变化。 我检查了 man diff 但有选项日志。谁能给我一个快速提示我应该做什么? 谢谢大家!!
I got two files. I want to use diff to compare those to see what has been changed.
I checked man diff but there are log of options. Could anyone give me a quick hint what should I do?
thank you you all!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将以统一的形式为您提供文件之间的差异。您还可以将它们保存到文件中
并修补原始文件以进行以下更改:
will give you a differences between files in unified form. You can also save them to a file
And patch an original file to have these changes:
简单:
差异路径/to/file1 路径/to/file2
Simple:
diff path/to/file1 path/to/file2