6-11
Cisco IOS XR Getting Started Guide
OL-10957-02
Chapter6 CLI Tips, Techniques, and Shortcuts
Wildcards, Templates, and Aliases
exec-timeout 120 120
!
logging trap
--More--
/ip
filtering...
ip route 0.0.0.0 255.255.0.0 pos0/2/0/0
interface pos0/2/0/0
ip address 172.19.73.215 255.255.0.0
end
Tip On most systems, Ctrl-Z can be entered at any time to interrupt the output and return to EXEC mode.
For more information, see Appendix A, “Understanding Regular Expressions, Special Charact ers, and
Patterns.”
Wildcards, Templates, and Aliases
This section contains the following topics:
Using Wildcards to Identify Interfaces in show Commands, page 6-11
Creating Configuration Templates, page 6-12
Aliases, page 6-15
Keystrokes Used as Command Aliases, page 6-16

Using Wildcards to Identify Interfaces in show Commands

Wildcard s (*) identify a group of interfaces in show commands. Table 6 -4 provides examples of
wildcard usage to identify a group of interfaces.
Table6-4 Examples of Wildcard Usage
Note The wildcard (*) must be the last character in the interface name.

Example

In the following example, the configuration for all POS interfaces in rack 0, slot 1 is displayed:
RP/0/RP1/CPU0:router# show running-config interface pos0/1/*
Wildcard Syntax Description
*Specifies all interfaces
pos* Specifies all POS interfaces in the system
pos0/1/* Specifies all POS interfaces in rack 0, slot 1
pos0/3/4.* Specifies all subinterfaces for POS0/3/4