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` ?
精彩评论