The comm tag has no wiki summary.
2
votes
2answers
133 views
comm fails on bash variable input
I have a script that's supposed to get the list of files of two directories, get differences and execute some code for certain files.
These are the commands to get the file lists:
list_in=$(find ...
4
votes
1answer
168 views
comm: file is not in sorted order
I used comm to compare two sorted files.
Each line in these files are positive integer numbers.
But the results show
comm: file 1 is not in sorted order
comm: file 2 is not in sorted order
How ...
1
vote
3answers
655 views
Find common elements in a given column from two files and output the column values from each file
I have two files with tab-seperated values that look like this:
file1:
A 1
B 3
C 1
D 4
file2:
E 1
B 3
C 2
A 9
I would like to find rows between files 1 and 2 where the ...
2
votes
2answers
627 views
Issues of using sort and comm
I was trying to find the intersection of two plain data files, and found from a previous post that it can be done through
comm -12 <(sort test1.list) < (sort test2.list)
It seems to me that ...
1
vote
1answer
459 views
Diff similar lines
I'd like to print a list of lines where the first word in two files is identical, and the rest of the words are not. Some complicated mess with comm, grep and cut would be possible, but hopefully ...