Is there a UNIX command on par with
sort | uniq
to find string set intersections or "outliers".
An example application: I have a list of html templates, some of them have {% load i18n %} string inside, others don't. I want to know which files don't.
edit: grep -L solves above problem.
How about this:
file1:
mom
dad
bob
file2:
dad
%intersect file1 file2
dad
%left-unique file1 file2
mom
bob