News for hackers. Stuff that matters.
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.
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
Re:F (2006) by drran on Saturday August 22, 2020 @02:42AM (#24242206)

    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