Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

671.Text merge -- How to compare two folders and merge files which have same file names by column?

User: Lynne -- 2010-12-04          << 670  672 >>
Hits: 2128
Type: Text merge   
Search all Text merge examples
Description:
How to compare two folders and merge files which have same file names by column?
Input Sample:
C:\001.TXT 
C:\002.TXT 
C:\003.TXT 
D:\002.TXT 
D:\004.TXT 
D:\005.TXT 
Output Sample:
I want to merge D:\002.TXT to C:\002.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:
d:\1.txt
d:\2.txt
...
4. ctrl-s save to list.txt
5. ctrl-h open 'replace' window
* click "Advanced" page, set "Run following at the beginning" to:

* select the "Write Mode" between the "Output Page" and "Output File" from ">" to ">>> Column Append"
6. click "Batch..." Button
7. click "Import List" button and import list.txt
8. click "Batch Replace", done!

Note: if all filenames in c:\ and d:\ are identical, you can skip step 1 to 4, and pick or drag files from d:\ to "Batch Runner" in step 7

Screenshot 1:  Replace_Advanced_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to merge two or more files which have same file names? (81%)
How to merge consecutive lines that have the same first column? (58%)
How to move files to new folders which foldername is same as filename? (57%)
How to create some copies of 2 files with specified names? (55%)
How to batch rename hyphen delimitered files with part of filename as newname? (53%)
How to create files from template where filenames and keywords come from a list? (51%)
How to replace a words with the previous word in the same column? (51%)
How to batch rename files by multiplying each number in filename by 2? (50%)

Check Demo of Text merge
Keywords:
compare two folders  dirname  same file names  identical  compare  skip  mode  column append  grep  folders  compare two files  compare column  identical files  same type  column identical  compare files  text compare  merge second column