AlexSilver9 / intersect

Prints intersection of two files line by line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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

About

Prints intersection of two files line by line


Languages

Language:Rust 100.0%