Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1064.Advanced search and replace -- How to add in different sentences after the different lines?

User: sam -- 2013-03-14          << 1063  1065 >>
Hits: 3581
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to add in different sentences base on the different interface 
Input Sample:
interface GigabitEthernet 
 
interface FastEthernet 
 
interface vlan 
 
interface GigabitEthernet
Output Sample:
interface GigabitEthernet 
aaa 
bbb 
 
interface FastEthernet 
ccc 
 
interface vlan 
ddd 
 
interface FastEthernet 
ccc
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
This is a task of search&replace with multiple rules. 
1. open "Tools->Batch Runner" menu 
2. drag one or multiple text file from windows file browser to "batch runner" window 
3. click "fast replace" button 
4. click "add" to add new rules: 
* set "search" to: 
 
* set "replace" to: 
 
* click "ok" 
5. repeat step 4, until all other rules have been added. 
6. make sure "reg exp" are checked. 
7. click "start", done.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to split different groups of continuous numbers into different files? (64%)
How to extract different part from adjacent lines? (62%)
How to split English sentence and Chinese sentence into different lines? (61%)
How to count and sort the occurrance of different lines? (60%)
How to add different words at the beginning of each line? (59%)
How to add a specified value to the sequence number in each line? (59%)
How to extract and format sentences matching given word list? (58%)
How to add sequence number for duplicated line? (58%)

Check Demo of Advanced search and replace
Keywords:
task  bit  sentences  aaa  sentence  repeat  multiple rules  rules  after  multiple rule  replace set of sentences in a text  add sentences  add different lines  replace sentences  repeat text  replace all text after  replace text multiple file rules  search and replace multiple rules