3 ms·
The traditional unix command for this is 'comm' and it is usually installed by default.
by shrubble 6y ago
The traditional unix command for this is 'comm' and it is usually installed by default.
- 1vuio0pswjnm7 6y agoHow would you solve this task with comm? For that sort of comparison I usually use diff -y A B
- drran 6y agocomm -13 A B
- 1vuio0pswjnm7 6y agoI totally screwed up the example. I wanted list B to have some items not in A, e.g., echo AAA_not_in_A_xxx >> B fgrep -vf A B Result should be AAA_not_in_B_xxx