Copy differences between two files in unix

后端 未结 3 2029
南旧
南旧 2020-12-21 23:45

Firstly, which is the best and fastest unix command to get only the differences between two files ? I tried using diff to do it (below).

I tried the answer given by

3条回答
  •  北海茫月
    2020-12-22 00:35

    diff -a --suppress-common-lines -y file1.txt file2.txt|tr 'a >' '' |awk '{print $1}' >>file3.txt 
    

提交回复
热议问题