There are 2 files.
- file1.txt
- file2.txt
Compare both files and find
- common lines between 2 files
- non-common lines between 2 files.
Language Used:
- Python 3
Update file1.txt and file2.txt to find common lines between 2 files. Run code in your python terminal. 2 new files will be generated
- outfile_intersection.txt (all Intersecting lines will be updated in this file.)
- outfile_complement.txt (all non-common lines of both files(file1.txt, file2.txt) will updated in this file.)