Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

315.Advanced search and replace -- How do I replace a partial constant in my file with one by one lines in a dictionary file?

User: David -- 2009-02-11          << 314  316 >>
Hits: 1473
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How do I replace a partial constant in my file with one by one lines in a dictionary file?
Input Sample:
I Like bubbles
I Lick bubbles
bubbles are fun
bubbles are good
do you like bubbles
how many bubbles have you licked
do you think bubbles like you?
Output Sample:
I Like apple
I Lick tomato
Fred are fun
cat are good
do you like hamsters
how many toilet have you licked
do you think computers like you?
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Please take following 2 steps:

1. Assume your dictionary file is d.txt, has one item each line.
1) ctrl-o open d.txt
2) ctrl-h open replace dialog
set "Replace Unit" to "Line"
* click "Advanced" page:
set "run following at the beginning of replace" to:

set "run following for each matched unit" to: 

3) click "Replace" button, dictionary file is imported!

2. Assume your text to be replaced is a.txt
1) ctrl-o open a.txt
2) ctrl-h open replace dialog
set "Search for pattern" to:

set "Replace with pattern" to: 

3) click "Replace", your text is replaced!

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Screenshot 3:  Replace_Window


Similar Examples:
How to replace content of many files with text from a template file? (58%)
How to create a text file by choosing N random lines from each of many files? (57%)
How to replace file content in multiple files with corresponding filename? (57%)
How to replace a string in one text file with random words from another file? (57%)
How to replace the content of XML with a list of words from text file? (55%)
How to search/replace multiple text files base on rules from csv file? (55%)
How to use many replace pioneer script file(rst) on one input file? (55%)
How to replace the quoted text with lines from another file? (54%)

Check Demo of Advanced search and replace
Keywords:
logs  dictionary  diction  less  toc  pages  dic  import  values  clear  text to dictionary  search for lines beginning  lines beginning with  search lines  replace lines  text file search and replace  search and replace text  search pattern