Chapter 45: CLI Overview
STANDARD Revision 1.0
C4® CMTS Release 8.3 User Guide
© 2016 ARRIS Enterprises LLC. All Rights Reserved.
1120
[0-9a-f][0-9a-f][0-9a-f]\.[0-9a-f][0-9a-f][0-9a-f][0-9a-f]
Alternation
Alternation allows you to specify alternative patterns to match against a string. You separate the alternative patterns with
a vertical bar (|). Either one of the alternatives can match the string.
The expression "interface.*19" returns 4 results, the expression "include slot.*17" returns 2 results, and "include slot.*17 |
interface.*19" returns the combination, as shown in the following examples:
show running-config | include interface.*19
configure interface ethernet 19/0 ip address 10.1.50.100 255.255.255.0
configure interface system-controller 19/0 no shutdown
configure interface system-controller 19/1 no shutdown
configure interface system-controller 19 no shutdown
show running-config | include slot.*17
configure slot 17 type RCM name "RCM A"
configure snmp-server card-trap-inh slot 17 40
show running-config | include slot.*17|interface.*19
configure interface ethernet 19/0 ip address 10.1.50.100 255.255.255.0
configure slot 17 type RCM name "RCM A"
configure snmp-server card-trap-inh slot 17 40
configure interface system-controller 19/0 no shutdown
configure interface system-controller 19/1 no shutdown
configure interface system-controller 19 no shutdown
Anchoring
You can match an expression pattern against the beginning or the ending of a string. By specifying that the beginning or
ending of an input string contains a specific pattern, you "anchor" these expressions to a portion of the string using the
special character shown in the following table.
Table 146.
Special Anchoring Character
Character
Description
^
The caret matches the beginning of the string