User: user -- 2016-04-23 << 1363 1365 >> |
Hits: 3482 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to remove lines containing specified words in a text file? There are two files: one is words list as dictionary; the other is a text document with many lines. I want to remove all lines containing the specified words in the words list |
Input Sample: |
dictionary file (word list): aaa bbb ccc text document: This is aaa This is bbb This is ccc This is ddd This is eee This is fff |
Output Sample: |
This is ddd This is eee This is fff |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume dictionary file is d:\test\dictionary.txt 1. ctrl-o open text file 2. ctrl-h open 'replace' dialogue * set 'replace unit' to 'Line' * set 'if=>' to: * click 'advanced' tab, set 'run following at the beginning of replace' to: 3. click 'replace', done. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |