User: shuaigemi -- 2010-02-05 << 413 415 >> |
Hits: 5050 |
Type: Text merge |
Search all Text merge examples |
Description: |
How to merge every two lines into one line between ¡¾part1¡¿and ¡¾partn¡¿ in a text file? |
Input Sample: |
. . . ¡¾part1¡¿ line 1 (ps:there is a blank line between every two lines) line 2 line 3 line 4 . . . ¡¾part2¡¿(or maybe ¡¾part3¡¿or ¡¾part4¡¿) . . . |
Output Sample: |
. . ¡¾part1¡¿ line 1 line 2 line 3 line 4 . . . ¡¾part2¡¿(or maybe ¡¾part3¡¿or ¡¾part4¡¿) . . . |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open source text file 2. ctrl-h open 'replace' dialog: * in 'search for pattern', fill: * in 'replace with pattern' fill: 3. click 'Replace', done! 4. ctrl-s save to file. |
Download Script: scripts/414.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
How to merge every 3 lines from file A and every 1 line from file B? (57%) How to join every n lines into 1 line in a text file? (57%) Join every 3 lines into one line (56%) How to merge many files into one file? (54%) How to merge many files into one file, and add filename before each file? (53%) How to merge 4 lines to one according to given rules? (52%) How to insert two columns into a database file separated by "|"? (52%) How to get content between a pair of nearest ab bc? (50%) |
Check Demo of Text merge |
Keywords: |
merge every two lines merge every two lines into one every two line two lines text merge merge merg mer two between between every two lines every between two lines merge two lines into one merge two text lines merge two lines merge two line into one merge every line merge every lines |