Pathfinder Applications
Note: † Internal applications are hidden from customers and partners. This is visible to you because you have logged into HPEs internal network.
Navigation
Table of Contents
Guide That Contains This Content
[+] Expand All
[-] Collapse All
Related Documentation
- EX Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- J Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- M Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- MX Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- PTX Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- T Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
Example: Using Global Replace in a Junos Configuration—Using the \n Back Reference
The following example shows how you can use the \n back reference to replace a pattern:
[edit]user@host# show interfaces
xe-0/0/0 {unit 0;}
fe-3/0/1 {vlan-tagging;unit 0 {description "inet6 configuration. IP: 2000::c0a8::1bf5";vlan-id 100;family inet {address 17.10.1.1/24;}family inet6 {address 2000::c0a8:1bf5/3;}}}
[edit]user@host# replace pattern "(.*):1bf5" with
"\11bf5"[edit]user@host# show interfacesxe-0/0/0 {unit 0;}
fe-3/0/1 {vlan-tagging;unit 0 {description "inet6 configuration. IP: 2000::c0a8:1bf5";vlan-id 100;family inet {address 17.10.1.1/24;}family inet6 {address 2000::c0a8:1bf5/3;}}}
The pattern 2000::c0a8::1bf5 is replaced with 2000::c0a8:1bf5.
Related Documentation
- EX Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- J Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- M Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- MX Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- PTX Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration
- T Series
- Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
- Using Global Replace in a Junos Configuration