4 ms·
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"); } j
by herne 5y ago
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"); }