Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1356.Text merge -- How to combine multiple pairs of text files line by line?

User: user -- 2016-03-22          << 1355  1357 >>
Hits: 1351
Type: Text merge   
Search all Text merge examples
Description:
how to batch process sample #1354, there are many files in a folder, I'd like to
copy same lines and combine different lines from 2 files in batch. The file names
are related to each other. i.e.
1001chs.txt related to 1001eng.txt;
1002chs.txt related to 1002eng.txt;
1003chs.txt related to 1003eng.txt
Input Sample:
File 1001eng.txt: 


1.1 
What's going on? 


2.1 
What do you mean? 


File 1001chs.txt: 


1.1 
怎么了? 


2.1 
什么怎么了? 
Output Sample:

1.1 
What's going on? 
怎么了? 


2.1 
What do you mean? 
什么怎么了?
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. 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 'batch...' button open batch runner
4. drag all *eng.txt from file browser to "Batch Runner" window
5. set 'output file name' to:

6. click 'Batch Replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to split multiple text files by 100 lines? (71%)
How to convert many html files to text files all at once? (67%)
How to insert mulitple text files into multiple html files? (65%)
How to make multiple copies of a file and rename them from a list? (65%)
How to remove the last 3 lines of multiple text files all at once? (65%)
How to join multiple script (rst) files from replace pioneer? (64%)
How to replace adjacent multiple spaces in a text files into one tab? (64%)
How to refine multiple text files by specified rules? (62%)

Check Demo of Text merge
Keywords:
combine  full  text merge  merg  merge  mer  process  file names  names  same  copy merge files  text replace pairs from file  batch file copy file with same name  batch file to copy files with different names  how to copy files with different name batch file  batch file copy a file with same name  batch copy files with different names  copy folder batch to a different name