zet

Find union, intersection, and set difference of files

brewmacoslinux
Try with needOr install directly
Source

About

CLI utility to find the union, intersection, and set difference of files

Commands

zet

Examples

Find the intersection of two sorted files$ zet -i file1.txt file2.txt
Find the union of multiple files$ zet -u file1.txt file2.txt file3.txt
Find set difference (lines in file1 but not in file2)$ zet -d file1.txt file2.txt