Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

660.Text merge -- How to merge two or more files which have same file names?

User: Lynne -- 2010-11-21          << 659  661 >>
Hits: 403
Type: Text merge   
Search all Text merge examples
Description:
How to merge two or more files which have same file names?
Thank you.
Input Sample:
C:\001.TXT
C:\002.TXT
C:\003.TXT
D:\001.TXT
D:\004.TXT
D:\005.TXT

Output Sample:
Just merge D:\001.TXT to C:\001.TXT

Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume the first folder is c:\, second folder is d:\, the file type you need to merge is *.txt.

1. ctrl-h open 'replace' window
2. click 'Advanced' page:
* in 'insert begin text' entry, enter:

* in 'run following for each matched unit' entry, enter:

3. click 'replace', the text with following format is generated:

4. ctrl-s save to a file like merge.bat
5. run merge.bat in windows.

Note:
1. you need to backup all files in advance
2. you should change the line in step 2 according to your real path(need to use double backslash \\), if source path is c:\xxx, destination path is d:\xxx, change it like:


Screenshot 1:  Replace_Advanced_Window


Similar Examples:
How to compare two folders and merge files which have same file names by column? (67%)
How to merge two or more csv files with different columns into one file? (64%)
How to merge two files line by line? (56%)
How to split a text file into multiple files and take the date as filename? (55%)
How to extract titles of all html files and save them to one file? (54%)
How to rename mutiple files with the 3rd and 4th line in file content? (51%)
How to rename all files by multiplying each number in filename by 3? (51%)
How to batch rename text files by adding the value of file content to filename? (51%)

Check Demo of Text merge
Keywords:
grep  slash  backslash  double  text merge  merg  merge  backup  path  acc  same type  merge begin  insert first line  merge text files with same same  merge two files  folder path  merge two text file  merge files