User: editor -- 2010-05-11 << 504 506 >> |
Hits: 4460 |
Type: Text merge |
Search all Text merge examples |
Description: |
How to merge 3 text files by getting one line from each file repeatly? I have 3 text files that contain same number of lines, how can I take one line from each file repeatly and generate a new file? |
Input Sample: |
file1: a1 a2 a3 ... file2: b1 b2 b3 ... file3: c1 c2 c3 ... |
Output Sample: |
merge 3 files together: a1 b1 c1 a2 b2 c2 a3 b3 c3 ... |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open file1 2. open menu "File->Load->Column Append file to page * in setting's dialog, set "word output delimiter" to "other", and fill the following entry to: * click "Next" and open the file2 3. repeat step 2 for the file3. Now the data looks like: 5. ctrl-h open 'Replace' dialog * in "search for pattern", enter: * in "replace with pattern", enter: 6. click 'Replace', now all the column "|" will be replaced with new line. |
Similar Examples: |
How to create a text file by choosing N random lines from each of many files? (64%) How merge many txt files to a txt file horizontally? (61%) How to merge many files into one file, and add filename before each file? (61%) How to merge odd lines from file1 and even lines from file2? (60%) How to merge every 3 lines from file A and every 1 line from file B? (60%) How to batch rename text files with random line from file contents? (60%) How to sort a text file by the length of text in each line? (60%) How to merge many files into one file? (59%) |
Check Demo of Text merge |
Keywords: |
column append repeat merge 3 text files text merge merge files that contain merg mer append append file replace word repeatly how to repeat each line of a file merge lines with the same column generate a number from a word lines contain word other file how to replace same text in 2 files with other merge one file to other column by column merge files |