diff for multiple files

1

1

I use "diff -y" command to compare 2 results of different versions of my program line by line. Like this:

1      1
123  | 234
asdf | qerq

Is there analog for multiple files, which will allow to compare line by line 3 or 4 files?Like this:

1      1      1      1
123  | 234  | 345  | 234
asdf | qerq | qdfd | asdd

klm123

Posted 2012-11-21T09:44:28.173

Reputation: 213

Answers

2

Here's a nice suggestion on stackoverflow. Take a look at the accepted answer about Diffuse software.

As for the output of the comparison to a file, I've just tested it with diffuse-0.4.6, but was unable to discover such feature, so I guess it's a topic for another question...

user157378

Posted 2012-11-21T09:44:28.173

Reputation:

Em.... I don't get it. I ask about three and more.. – klm123 – 2012-11-21T09:51:29.407

2

Sorry, my bad... Now I understand what you need... Try this

– None – 2012-11-21T09:54:26.897

Thanks. If you change your answer I would accept it. But, is there a way to dump result in the file? So I can send it to other people? – klm123 – 2012-11-21T10:49:40.273

1

vimdiff 1 2 3 4;

vimdiff

It's highly customisable with loads of features, for example if you want to dump the UI to html;

vimdiff 1 2 3 4 -c TOhtml -c 'w! diff4.html|qa!'

user1133275

Posted 2012-11-21T09:44:28.173

Reputation: 190

0

There is diff3 for comparing three files

RedGrittyBrick

Posted 2012-11-21T09:44:28.173

Reputation: 70 632

It shows only different parts and delete similar parts of the files. Or this can be changed? – klm123 – 2012-11-21T09:48:44.217