Re: desired diff feature: show common lines

[email protected] (Karl Berry)
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
    > I would sometimes like see the common lines of two files only. I haven't 

As long as there is any difference at all, I think you could use, say.
diff -C 9999999 file1 file2
and then filter out the changed lines with grep -v [\!+-] or whatever.

Of course, if the files are sorted, comm is better.

Best,
karl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.