开发者

Comapring data sets in two delimited files

I have two tab delimited files, of 3 columns and n number of rows.

I would like print only those rows which are non overlapping in the two files. I am using Shell scripting.

Any suggestions ?

Thank you in 开发者_高级运维advance.


comm -3 <(sort file1) <(sort file2)

The -3 option will suppress any lines that are common between file1 and file2.


Have you tried

`diff -b file1 file2` ?
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜