开发者

how to find the diff of two sorted files (compare line by lilne)

开发者 https://www.devze.com 2023-03-12 16:54 出处:网络
file 1: a b c d e . . z file2: d g 开发者_Python百科k how do I find the data exists in 1 but not 2.There is a utility that already does that:

file 1:

a
b
c
d
e
.
.
z

file2:

d
g
开发者_Python百科k

how do I find the data exists in 1 but not 2.


There is a utility that already does that:

comm -23 file1 file2


use unix comm


The POSIX standard comm utility also does this.


Use a program that does exactly that. i'm using kdiff3. for windows i think there is winmerge

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号