User: user -- 2016-03-29 << 1356 1358 >> |
Hits: 3278 |
Type: Text merge |
Search all Text merge examples |
Description: |
How to match same lines between 2 files and combine the line followed? In the example, copy the identical line found in file A and file B: cccccc 100001 And copy one different line followed in both file: Hello ÄãºÃ¡£ And so on. |
Input Sample: |
File A cccccc 100001 Hello! 100002 Good morning. File B aaaaaa bbbbbb cccccc 100001 ÄãºÃ¡£ 100002 ÔçÉϺã¡ |
Output Sample: |
cccccc 100001 Hello! ÄãºÃ¡£ 100002 Good morning. ÔçÉϺã¡ |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume file b.txt is in d:\test\ 1. ctrl-o open file txt 2. ctrl-h open 'replace' dialogue * set "replace with pattern" to: * click "advanced" tab: set "run following for each matched unit" to: 3. click 'replace', done. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |