[CentOS] File compare word by word

Filipe Brandenburger filbranden at gmail.com
Wed May 13 22:08:12 UTC 2009


Hi,

On Wed, May 13, 2009 at 18:02, MHR <mhullrich at gmail.com> wrote:
> Is there a utility that compares files word by word, instead of whole
> lines or single bytes?

It is not exactly what you are looking for, but have you tried
"vimdiff"? If lines differ, it will highlight the words that are
different in them. It is still line-oriented, so it does not work if
you reformat a paragraph, but if you want to find which parts of a
long command line are different it is quite useful.

HTH,
Filipe



More information about the CentOS mailing list