User: basikabo -- 2014-08-06 << 1227 1229 >> |
Hits: 3525 |
Type: Text file parser |
Search all Text file parser examples |
Description: |
How to extract all lines that contain words in a list? |
Input Sample: |
A.txt AAA BBB B.txt 111AAA111 222BBB222 232CCC231 |
Output Sample: |
Output file: 111AAA111 222BBB222 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Make sure 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 |