Suppose there are two files,
1 | A |
How to remove duplicate rows?
1 | aaa |
1 | cat A B | sort | uniq |
How to get intersection?
1 | aaa |
1 | cat A B | sort | uniq -c | awk -F " " '{if($1!=1) print $2;}' |
Suppose there are two files,
1 | A |
How to remove duplicate rows?
1 | aaa |
1 | cat A B | sort | uniq |
How to get intersection?
1 | aaa |
1 | cat A B | sort | uniq -c | awk -F " " '{if($1!=1) print $2;}' |