3-11
Cisco CRS-1 Series Carrier Routing System Getting Started Guide
Chapter 3 CLI Tips, Techniques, and Shortcuts
Wildcards, Templates, and Aliases
In the following example, the user adds a filter at the --More-- prompt to show only the lines in the
remaining output that contain the regular expression “ip.”
RP/0/RP0/CPU0:router# show configuration running | begin line
Building configuration...
line console
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 C, “Understanding Regular Expressions, Special Characters, and
Patterns.”
Wildcards, Templates, and Aliases
This section contains the following topics:
• Using Wildcards to Identify Interfaces in show Commands, page 3-11
• Creating Configuration Templates, page 3-13
• Aliases, page 3-17
• Keystrokes Used as Command Aliases, page 3-18
Using Wildcards to Identify Interfaces in show Commands
Wildcards (*) identify a group of interfaces in show commands. Table 3-4 provides examples of
wildcard usage to identify a group of interfaces.
Table 3-4 Examples of Wildcard Usage
Note The wildcard (*) must be the last character in the interface name.
Wildcard Syntax Description
* Specifies all interfaces
pos* Specifies all POS interfaces in the system
pos0/1/* Specifies all POS interfaces in slot 1
pos0/3/4.* Specifies all subinterfaces for POS0/3/4