Find repeating lines in a line?
Digi Uzman last edited by
Hello, I would be very happy if you could help.
I made a serious mistake and I need your help to fix this mistake.
I have a txt file with 1 million lines and a list of keys of 42 characters contiguous on each line.
The problem is that I have a 2nd txt file in the same way, but there are 25 million lines and I need to extract the matches from the 1st file.
How can I do this with notepad++?
I’m sorry for my bad english
Thank you very much for your help in advance.
PeterJones last edited by
You want to find every line in FILE2 that matches a line from FILE1?
No, Notepad++ does not do that natively. Using a scripting plugin, you might be able to code something up to do it inside notepad++; or using any programming language you know, it could be done in that programming language. But it’s not something that Notepad++ itself does.
Neil Schipper last edited by Neil Schipper
When you say extract, what exactly do you mean? Do you want them deleted? Or is it good enough to simply identify them so you can take further action?
Do you care about preserving the original order of lines in the file that needs to change (if a file will change)?
It would be best if you could provide three
sample text blocks (see FAQ, find section on "literal text boxes: used in many other posts on this site).
Show file1 sample text and file2 sample text, making sure to include both cases that do and do not have matches, maybe 5 - 20 lines each, and then in the third show exactly what you want to end up with.
I’m fairly certain what you want can be done. If order preservation is important it might be a multi-step process.