Percentage value with GNU Diff

前端 未结 3 1163
孤城傲影
孤城傲影 2021-02-03 11:42

What is a good method for using diff to show a percentage difference between two files?

Such as if a file has 100 lines and a copy has 15 lines that have been changed th

3条回答
  •  眼角桃花
    2021-02-03 12:28

    https://superuser.com/questions/347560/is-there-a-tool-to-measure-file-difference-percentage has a neat solution for this,

    wdiff -s file1.txt file2.txt
    

    more options see man wdiff.

提交回复
热议问题