Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

diff for multiple files

Writer Sebastian Wright

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

3 Answers

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!'
0

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...

3

There is diff3 for comparing three files

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy