Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1219.Text file parser -- How to extract all lines do not contain a list of keywords?

User: basikabo -- 2014-07-26          << 1218  1220 >>
Hits: 1058
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract all lines do not contain a list of keywords?
Input Sample:
A.txt
AAA
BBB

B.txt
111AAA111
222BBB222
232CCC231
Output Sample:
Output file:

232CCC231
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assure a.txt is in d:\test\ folder
1. ctrl-o open b.txt
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.
4. ctrl-s save to file.

Note: you must use double backslash for folder delimiter, such as d:\\test\\a.txt

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to extract all lines that contain words in a list? (74%)
How to extract all lines that contain words A and B and C? (74%)
How to extract all lines not containing 'ing' and 'and'? (71%)
How to extract all lines that contain specific words in a file? (70%)
How to extract all links that contain imprint from a webpage? (69%)
How to extract all lines that contain A, but not any of B C D? (69%)
How to extract all lines that contain chem, but not any of org and cn? (68%)
How to extract all lines that contain specified words or phrases? (67%)

Check Demo of Text file parser
Keywords:
matches  keywords  keyword  backslash  double  slash  extract all lines  key  delimiter  extract all line  extract double lines  extract keywords  extract keywords file  double lines  tab delimiter  keywords replace  extract all lines contain  extract lines contain