Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 430 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 430 Bytes

#intersect

Prints intersection of two files line by line. For comparison lines are trimmed. Empty lines are skipped. Intersection detection is done via hashset intersection, so the output is unordered.

Usage
intersect <file a> <file b>
Example

Given the file a:

a
b

And the file b:

  b
 
c

The output is:

$ intersect file_a file_b
b