我在GNU / Linux系统上使用Emacs。 我试图比较两个包含数字列的数据文件,这些数据列的内容几乎相似。 是否有Emacs / Unix实用程序来突出显示这些文本文件之间的差异?
I am using Emacs on a GNU/Linux system. I am trying to compare two data files containing columns of numbers which are almost similar in content. Is there an Emacs/Unix utility to highlight the differences between these text files?
最满意答案
在emacs中,如果将两个文件都拉入不同的缓冲区,则可以使用Mx ediff-buffers命令显示差异。 Emacs将很好地突出显示差异,并允许您同时滚动缓冲区。 请参阅“ Ten Essential Emacs提示 ”页面上的提示#5 ,或Ediff上的GNU文档 。
在Unix下有diff命令。 这是一个使用diff的简短示例 ,还有一个例子
我通常更喜欢与Emacs比较,更直观,但当然两个文件都需要适合缓冲区。
In emacs, if you pull both files into different buffers, you can use the M-x ediff-buffers command to display the differences. Emacs will nicely highlight the differences and allow you to scroll through the buffers concurrently. See tip #5 on this "Ten Essential Emacs tips" page, or the GNU docs on Ediff.
Under Unix there's the diff command. Here's a short example of using diff, and one more example
I usually prefer comparing with Emacs, more visual, though of course both files will need to fit into buffers.
比较unix系统上的两个文本文件(Comparing two text files on a unix system)我在GNU / Linux系统上使用Emacs。 我试图比较两个包含数字列的数据文件,这些数据列的内容几乎相似。 是否有Emacs / Unix实用程序来突出显示这些文本文件之间的差异?
I am using Emacs on a GNU/Linux system. I am trying to compare two data files containing columns of numbers which are almost similar in content. Is there an Emacs/Unix utility to highlight the differences between these text files?
最满意答案
在emacs中,如果将两个文件都拉入不同的缓冲区,则可以使用Mx ediff-buffers命令显示差异。 Emacs将很好地突出显示差异,并允许您同时滚动缓冲区。 请参阅“ Ten Essential Emacs提示 ”页面上的提示#5 ,或Ediff上的GNU文档 。
在Unix下有diff命令。 这是一个使用diff的简短示例 ,还有一个例子
我通常更喜欢与Emacs比较,更直观,但当然两个文件都需要适合缓冲区。
In emacs, if you pull both files into different buffers, you can use the M-x ediff-buffers command to display the differences. Emacs will nicely highlight the differences and allow you to scroll through the buffers concurrently. See tip #5 on this "Ten Essential Emacs tips" page, or the GNU docs on Ediff.
Under Unix there's the diff command. Here's a short example of using diff, and one more example
I usually prefer comparing with Emacs, more visual, though of course both files will need to fit into buffers.
发布评论