开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜