简体   繁体   中英

compare two files with numbers and find the difference , using linux shell command

8       13
10      22
13      24
22      26
24      27
26      28
27      29
28      32
29      34
32      35
34      40
66
78

I have two files like the above,file1 is the first column while file 2 is the second and I want to get the difference between these two files like 8 is in the first file but not in the second file i used comm but the results are strange how to achieve what I want?

man diff

请仔细阅读,我相信它会做您想要的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM