News for hackers. Stuff that matters.
Re:Checking It Twice by herne on Monday September 20, 2021 @05:43PM (#28599389)
I ended up with this in my .bashrc so I didn't have to keep remembering how to use comm each time:

  justA()  { comm -23 <(sort -u "$1") <(sort -u "$2"); }
  justB()  { comm -13 <(sort -u "$1") <(sort -u "$2"); }
  bothAB() { comm -12 <(sort -u "$1") <(sort -u "$2"); }

There are no comments on this comment yet.