Re:F (2006)
by shrubble on Friday August 21, 2020 @11:29PM
(#24241275)
The traditional unix command for this is 'comm' and it is usually installed by default.
[ Parent
| on HN ]
Re:F (2006)
by 1vuio0pswjnm7 on Saturday August 22, 2020 @12:06AM
(#24241459)
How would you solve this task with comm?
For that sort of comparison I usually use
diff -y A B comm -13 A B
Re:F (2006)
by 1vuio0pswjnm7 on Saturday August 22, 2020 @03:07AM
(#24242316)
I 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