| User: editor -- 2010-05-11 << 504 506 >> |
| Hits: 465 |
| 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 merge many files into one file, and add filename before each file? (61%) 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 add some text after the 5th line for every file in a directory? (59%) How to change multiple files, adding filename at the beginning of each file? (57%) How to sort the text file by the date at the beginning of each line? (56%) How to sort the lines in a text files by the order of line length? (56%) |
Check Demo of Text merge |
| Keywords: |
| column append repeat merge 3 text files merg merge text merge files that contain same append append file generate a number from a word merge lines with the same column merge lines by replace word repeatly merge text files by line merge files line by line text merge line by line how to replace same text in 2 files with other |