Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
RSS: Replace Pioneer Examples
1276.Advanced search and replace -- How to replace strings in one file with words from another file sequentially?
User:
James -- 2015-01-06
<< 1275
1277 >>
Hits:
3040
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
How to replace a sequncial string in one text file with sequencial words from another file?
Input Sample:
file A
name1
name2
name3
file B
line1:""
line2:""
line3:""
Output Sample:
file C
line1:"name1"
line2:"name2"
line3:"name3"
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
Assume the full path of file A is d:\test\A.txt
1. ctrl-o open file B
2. ctrl-h open 'replace' dialogue
* set 'search for pattern' to:
""
* set 'replace with pattern' to:
"file_line('d:\\test\\A.txt',$word_no)"
3. click "replace", done.
Note that the file path separater should be double backslash in step 2, such as d:\\test\\a.txt
Screenshot 1: Replace_Window
Similar Examples:
How to replace a string in one text file with random words from another file?
(78%)
How to replace a string with one of the specified words randomly in multiple files?
(69%)
How to replace strings with words in a list in sequence or randomly?
(67%)
How to replace all words "NAME" in a file to different names listed in another file in sequence?
(63%)
How to replace strings in hundreds of html files in one action?
(61%)
How to replace each line with line have same start word from another file?
(60%)
How to replace strings in multiple text files with an increasing id start from 1?
(59%)
How to replace the same words in text files with different strings?
(59%)
Check Demo of
Advanced search and replace
Keywords:
sequential
backslash
double
path
slash
file path
another file
full
replace strings
strings
double words
replace text from one file to another
replace text from another file
replace another
txt txt test
test txt
text string
test test test test