Compare strings from a very large text file (over 100 GB) with a small text file (about 30 lines) and print all the strings contained in both files
I have two text files. One contains a very long list of strings (100 GB), the other contains about 30 strings. I need to find which lines in the second file are also in the first file and write them to another,third text file. Manually searching for each line is a pain, so I wanted to write a script to do it automatically.
For this I choose Python because it is the only language that I know even a little.