![Huawei AR2200 Series Configuration Manual Download Page 28](http://html.mh-extra.com/html/huawei/ar2200-series/ar2200-series_configuration-manual_169296028.webp)
NOTE
Unless otherwise specified, degeneration rules are applicable when preceding regular expressions
serve as subexpressions within parentheses.
l
Combination of common and particular characters
In actual application, a regular expression combines multiple common and particular
characters to match certain strings.
Specifying a Filtering Mode in Command
CAUTION
The Huawei AR2200 Series uses a regular expression to implement the filtering function of the
pipe character. A display command supports the pipe character only when there is excessive
output information.
When the output information is queried according to the filtering conditions, the first line of the
command output starts with the information containing the regular expression.
The command can carry the parameter
| count
to display the number of matching entries. The
parameter
| count
can be used together with other parameters.
For the commands supporting regular expressions, the three filtering methods are as follows:
l
| begin regular-expression
: displays the information that begins with the line that matches
regular expression
.
l
| exclude regular-expression
: displays the information that excludes the lines that match
regular expression
.
l
| include regular-expression
: displays the information that includes the lines that match
regular expression
.
NOTE
The value of
regular-expression
is a string of 1 to 255 characters.
2.3.4 Previously-Used Commands
The CLI provides a function similar to DosKey to automatically save commands used previously
on the device. If you need to run a command that has been executed, you can call the command
from those have been used previously on the device. This facilitates user operation.
By default, the system saves a maximum of 10 previously-used commands for each user. You
can run the
history-command max-size
size-value
command in the user view to set the number
of previously-used commands saved in the system. A maximum of 256 previously-used
commands can be saved in the system.
NOTE
Setting the number of saved previously-used commands to a proper value is recommended. If a large
number of previously-used commands are saved, it will take a long time to locate a needed previously-
used command, affecting efficiency.
The operations are shown in
Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
2 CLI Overview
Issue 02 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
17