Reputation: 17470
Say I got:
aaa
bbb
ccc
and:
aaa
ccc
ddd
and I would like:
bbb
How would I get it?
Upvotes: 1
Views: 265
Reputation: 1096
Please try below command:
comm
is used for Compare sorted files FILE1 and FILE2 line-by-line.
-23
suppresses column 2 and 3.
$ comm -23 fil1.txt fil2.txt
bbb
Upvotes: 0