search two files for specific words remove the line from one file
by CyberIT from LinuxQuestions.org on (#5S2X2)
Hello
I have two files: file1 and file2. File2 is large
Im trying to query file2, line by line, for specific words that may be in file1, line by line and if the word matches a line in file 2 that line get removed within file2.
I could use some help to start a script for it. bash? python?
Thank you much!
I have two files: file1 and file2. File2 is large
Im trying to query file2, line by line, for specific words that may be in file1, line by line and if the word matches a line in file 2 that line get removed within file2.
I could use some help to start a script for it. bash? python?
Thank you much!