User: user -- 2016-03-19 << 1353 1355 >> |
Hits: 2990 |
Type: Text merge |
Search all Text merge examples |
Description: |
How to combine 2 files into one file, in which all paragraph can be combined if one line of paragraph is same in two files. Every file has the same structure, in which every paragraph is delimited by blank lines. Each paragraph has three lines, the first and second lines are same in two files, and the third line is different. |
Input Sample: |
File 1: 1 1.1 What's going on? 2 2.1 What do you mean? File 2: 1 1.1 ÔõôÁË? 2 2.1 ʲôÔõôÁË? |
Output Sample: |
1 1.1 What's going on? ÔõôÁË? 2 2.1 What do you mean? ʲôÔõôÁË? |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
0. put file 2.txt in d:\test\ folder 1. ctrl-o open text file 2. ctrl-h open 'replace' dialogue * set 'replace unit' to 'Line' * set 'replace with pattern' to: * set 'if =>' 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 |