User: y8888 -- 2017-08-12 << 1398 1400 >> |
Hits: 2565 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How do I merge the first row of the same line? |
Input Sample: |
a file: 111 test1 2222 test2 333 abc 444 ppp 5555 uuuuu b file: 111 uuu 111 bbb 111 cc 2222 aaaaa 333 ttt |
Output Sample: |
111 test1;uuu;bbb;cc 2222 test2;aaaaa 333 abc;ttt |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume your b.txt is in d:\test\ folder 1. ctrl-o open a.txt 2. ctrl-h open 'replace' dialgoue * 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. 4. ctrl-s save to file. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |