User: yong chen -- 2015-12-17 << 1331 1333 >> |
Hits: 2865 |
Type: Text data calculation |
Search all Text data calculation examples |
Description: |
I have two txt file, I want compare the number changed |
Input Sample: |
text one: AAA 5 BBB 3 CCC 2 text two: AAA 8 BBB 1 CCC 5 |
Output Sample: |
AAA 3 BBB -2 CCC 3 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume file one.txt is in folder: d:\test\ 1. ctrl-o open file two.txt 2. ctrl-h open 'replace' dialogue * set 'replace unit' to 'Line' * set 'replace with pattern' to: * click 'advanced' tab, set 'run following at the beginning of replace' to: 3. click 'replace', done. Note: you must use double backslash as folder delimiter like d:\\test\\one.txt in step 2 |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |