| User: editor -- 2010-09-20 << 615 617 >> |
| Hits: 3554 |
| Type: Text file parser |
| Search all Text file parser examples |
| Description: |
| How to delete from FILE A all lines that appear in file B? |
| Input Sample: |
| FILE A: line1 line2 line3 line4 FILE B: line2 line4 line6 |
| Output Sample: |
| FILE A: line1 line3 |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| Assume file B is in c:\test folder 1. ctrl-o open file A 2. ctrl-h open replace window: * set 'replace unit' to 'Line' * set 'if' to: select 'advanced' tab * set 'run following at the beginning of replace' to: 3. click 'Replace', done! 4. ctrl-s save A.txt |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |