Skip to content

Union, Intersection, Difference, and Symmetric Difference of the per line content of two text files.

Notifications You must be signed in to change notification settings

abrignoni/UIDAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UIDAS

Union, Intersection, Difference, and Symmetric Difference of the per line content of two text files.

alt text

Script will take 2 provided text files and provided the Union, Intersection, Difference, and Symmetric Difference of all line items per Python methods as stated here: https://docs.python.org/2/library/sets.html

Quick summary of methods where x = file1 and y = file2:

  • Union = Return a set that contains all items from both sets, duplicates are excluded.
  • Symmetric Difference = Return a set that contains all items from both sets, except items that are present in both sets.
  • Difference = Return a set that contains the items that only exist in set x, and not in set y.
  • Intersection = Return a set that contains the items that exist in both set x, and set y.

The script will place the resulting sets in txt files. alt text

About

Union, Intersection, Difference, and Symmetric Difference of the per line content of two text files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages