text - .txt delete lines containing -


there 2 text files: 1.txt , 2.txt. 1.txt contains urls separated line breaks , 2.txt contains words separated line breaks, 1 word per line. want delete urls 1.txt contain words 2.txt. convenient way that? example:

1.txt:

website1.com   website2word1.com   webword2site3.com   

2.txt:

word1   word2  

after processing, 1.txt should this:

website1.com 

the files quite large. first file contains million lines (that's after being split, there multiple files) , second 1 contains 10,000 lines.

you can write java program read url 1.txt , match 2.txt. , write url in 3.txt if matches requirement.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -