Friday, February 10, 2012

How to find difference between three files in ubuntu?

 Diff3 is the command used to find the compare three text files specified by filename1,filename 2 and filename3.It is also possible to compare three directories in ubuntu.This can be done when you specify three directories instead of files.The command diff3 compares only those files with same names.



Open terminal using Applications ---> Accessories ---> Terminal (or) Press Ctrl + Alt + t.

(1). To compare the three specified files and shows the differences between them,deploy the command as follows.

        sudo diff3 first.txt second.txt third.txt

 And hit Enter.




Done!

No comments:

Post a Comment