Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1432.Advanced search and replace -- How to generate multiple copies of each line with different values?

User: Dilip -- 2019-01-08          << 1431  1433 >>
Hits: 2852
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
Take the tab separated value and generate search or category lists by numerical  
increment in the result= variable 
 
Input Sample:
http://some-domai.com/search?result=1&format=html\t2 
http://some-domai.com/category?result=1&format=html\t6
Output Sample:
http://some-domai.com/search?result=1&format=html 
http://some-domai.com/search?result=2&format=html 
http://some-domai.com/category?result=1&format=html 
http://some-domai.com/category?result=2&format=html 
http://some-domai.com/category?result=3&format=html 
http://some-domai.com/category?result=4&format=html 
http://some-domai.com/category?result=5&format=html 
http://some-domai.com/category?result=6&format=html
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialoge 
* set 'replace unit' to 'Line' 
* set 'search for pattern' to: 
 
* set 'replace with pattern' to: 
 
3. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to extract the forth column in the second line from different files? (64%)
How to extract multiple fields from data file and create a csv file? (63%)
How to generate full combinations of "a b" where a and b are from 2 different files? (62%)
How to rename mutiple files with the 3rd and 4th line in file content? (62%)
How to generate 2 columns of HEX numbers which increased in different loop? (62%)
How to remove duplicate lines in multiple files in different sub-folders? (60%)
How to extract multiple lines in specified order from many text files? (59%)
How to refine multiple text files by specified rules? (58%)

Check Demo of Advanced search and replace
Keywords:
copies  lists  variable  ies  var  mer  separate  values  ical  map  multiple variable  replace lists  replace with variable  join multiple  each line to replace different  map file  replace with different file  replace with different