HP 4800G Series Configuration Manual page 1701

24/48 port
Table of Contents

Advertisement

Input the keyword begin, exclude, or include as well as the regular expression at the command
line to filter the output information.
Input slash (/), minus (-), or plus (+) as well as the regular expression to filter the rest output
information. Slash (/) is equal to the keyword begin, minus (-) is equal to the keyword exclude, and
plus (+) is equal to the keyword include.
Keywords begin, exclude, and include have the following meanings:
begin: Displays the line that matches the regular expression and all the subsequent lines.
exclude: Displays the lines that do not match the regular expression.
include: Displays only the lines that match the regular expression.
The regular expression is a string of 1 to 256 characters, case sensitive. It also supports special
characters as shown in
Table 1-5 Special characters in a regular expression
Character
Starting sign, string appears only at the
^string
beginning of a line.
Ending sign, string appears only at the
string$
end of a line.
Full stop, a wildcard used in place of any
.
character, including single character,
special character and blank.
Asterisk, used to match a character or
character group before it zero or multiple
*
times.
Addition, used to match a character or
+
character group one or multiple times
before it
Vertical bar, used to match the whole
|
string on the left or right of it
Underline. If it is at the beginning or the
end of a regular expression, it equals ^ or
_
$; in other cases, it equals comma,
space, round bracket, or curly bracket.
Hyphen. It connects two values (the
smaller one before it and the bigger one
-
after it) to indicate a range together with
[ ].
A range of characters, Matches any
[ ]
character in the specified range.
Table
1-5.
Meaning
1-18
Remarks
For example, regular expression "^user"
only matches a string beginning with
"user", not "Auser".
For example, regular expression "user$"
only matches a string ending with "user",
not "userA".
For example, ".l" can match "vlan" or
"mpls".
For example, "zo*" can match "z" and
"zoo"; (zo)* can match "zo" and "zozo".
For example, "zo+" can match "zo" and
"zoo", but not "z".
For example, "def|int" can only match a
character string containing "def" or "int".
For example, "a_b" can match "a b" or
"a(b"; "_ab" can only match a line
starting with "ab"; "ab_" can only match a
line ending with "ab".
For example, "1-9" means numbers from
1 to 9 (inclusive); "a-h" means from a to h
(inclusive).
For example, [16A] can match a string
containing any character among 1, 6,
and A; [1-36A] can match a string
containing any character among 1, 2, 3,
6, and A (with - being a hyphen).
"]" can be matched only when it is put at
the beginning of [ ] if it is used as a
common character in [ ], for example
[ ]string]. There is no such limit on "[".

Advertisement

Chapters

Table of Contents
loading

Table of Contents