| User: editor -- 2010-12-28 << 684 686 >> |
| Hits: 347 |
| Type: Text data calculation |
| Search all Text data calculation examples |
| Description: |
| How to take every line from file A and file B and calculate summary? |
| Input Sample: |
| file a.txt: 1 2 3 4 5 6 file b.txt 2 4 6 8 10 12 |
| Output Sample: |
| file c.txt: 3 6 9 12 15 18 |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| Assume file b.txt is located in d:\new\ folder. 1. ctrl-o open a.txt 2. ctrl-h open replace window * set 'replace unit' to 'Line' * set 'replace with pattern' to: * click 'advanced' page, set 'run following at the beginning of replace' to: 3. click 'replace', done. 4. ctrl-s save to file c.txt |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |