Skip to content

AlexSilver9/intersect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages