1030 CHAPTER 83: BASIC CONFIGURATIONS
n
When editing command line, you can use other shortcut keys (For details, see
Table 81) besides the shortcut keys defined in Table 83, or you can define shortcut
keys by yourself. (For details, see “Configuring CLI Hotkeys” on page 1025.)
CLI Display Filtering the output information
The device provides the function to filter the output information. You can specify a
regular expression to locate and search information you need.
The regular expression is a string of 1 to 256 characters, case sensitive, and space
allowed. It supports multiple mapping rules:
■ begin: Displays the configuration beginning with the specified regular
expression.
■ exclude: Displays the configuration excluding the specified regular expression.
■ include: Displays the configuration including the specified regular expression.
The regular expression also supports special characters as shown in Table 84.
<Tab> key Pressing <Tab> after entering part of a keyword enables the
fuzzy help function. If finding a unique match, the system
substitutes the complete keyword for the incomplete one and
displays it in the next line. If there are several matches or no
match at all, the system does not modify the incomplete
keyword and displays it again in the next line.
Table 83 Edit functions
Key Function
Table 84 Special characters in a regular expression
Character Meaning Remarks
^ Starting sign, the string following it
appears only at the beginning of a line.
Regular expression “^user” matches a
string begins with “user”, not “Auser”.
$ Ending sign, the string before it
appears only at the end of a line.
Regular expression “user$” matches a
string ends with “user”, not “userA”.
. Full stop, a wildcard used in place of
any character, including blank
None
* Asterisk, used to match a sub
expression zero or multiple times
before it
zo* can map to “z” and “zoo”.
+ Addition, used to match a sub
expression one or multiple times
before it
zo+ can map to “zo” and “zoo”, but not
“z”.
- Hyphen. It connects two values (the
smaller one before it and the bigger
one after it) to indicate a range
together with [ ].
For example, “1-9” means numbers from
1 to 9 (inclusive); “a-h” means from a to
h (inclusive).
[ ] Selects one character from the group. For example, [1-36A] can match only one
character among 1, 2, 3, 6, and A.
() A group of characters. It is usually used
with “+” or “*”.
For example, (123A) means a string
“123A”; “408(12)+” can match 40812
or 408121212. But it cannot match 408.
That is, “12” can appear continuously
and it must at least appear once.