| User: Roger -- 2016-10-30 << 1380 1382 >> |
| Hits: 3481 |
| Type: Text file parser |
| Search all Text file parser examples |
| Description: |
| How to re-group all lines in a file by a wordlist file? |
| Input Sample: |
| wordlist.txt: abc def input.txt: line contain abc1 line contain def line contain abc2 line contain nothing |
| Output Sample: |
| output.txt: abc line contain abc1 line contain abc2 def line contain def |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| Assume all files are put under d:/test/ folder 1. ctrl-o open wordlist.txt 2. ctrl-h open 'replace' dialogue * set 'replace unit' to 'Line' * set 'replace with pattern' to: if you need match word accurately, set 'replace with pattern' 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 |