Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1410.Advanced search and replace -- How to change network configuration files automatically?

User: mybox65 -- 2017-12-11          << 1409  1411 >>
Hits: 313
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
The keyword "FastEthernet" will be changed to "GigbitEthernet" and its followed Number will be added 24, for example: 0/1 change to 1/0/25, 0/3 change to 1/0/28

The other keyword "GigbitEthernet" will be remained unchanged, but the following if it has the following two sentences, put these two sentences into one sentence of "switch mode trunk"

switch mode access
switch mode vlan xx
Input Sample:
FastEthernet 0/1
  switch mode access
  switch more vlan 66

FastEthernet 0/3
  switch mode access
  switch more vlan 77

GigbitEthernet 1/1
  switch mode access
  switch more vlan 88
Output Sample:
GigbitEthernet 1/0/25
  switch mode access
  switch more vlan 66

GigbitEthernet 1/0/28
  switch mode access
  switch more vlan 77

GigbitEthernet 1/1
  switch mode trunk
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open file
2. ctrl-h open 'replace' dialog:
* set 'search for pattern' to:

* set 'replace with pattern to:

3. click 'replace'.
4. ctrl-h open 'replace' dialog again
* set 'search for pattern' to:

* set 'replace with pattern' to:

5. click 'replace', done.
6. select the 2 operation records from the list in the middle screen, right click mouse and select 'save to script'.
7. later, you can open a text file in page ‘P0' and select menu 'replace-> replace by script' to repeat the operation. 

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Window


Similar Examples:
How to find the 5 largest number from a text file automatically? (59%)
How to capitalize the first words of each sentence automatically? (58%)
How to detect encoding type of a text file automatically? (58%)
How to batch convert arabic number to roman numbers automatcially? (55%)
How to make html tags for image file list automatically? (55%)
How to split words into 44 phonemes automatically? (54%)
How to add alt attribute for all img tags in html files automatically? (52%)
How to change the number to the corresponding letter base on mapping table? (52%)

Check Demo of Advanced search and replace
Keywords:
vlan  switch  screen  bit  access  records  sentences  middle  mode  replace by script  save network  replace set of sentences in a text  add sentences  replace sentences  operation 7  list file and operation  search and replace sentence  repeat text