Cisco Sx350 Cli Manual page 43

Hide thumbs Also See for Sx350:
Table of Contents

Advertisement

Introduction
NOTE
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
exclude: Excludes all lines that have a sequence of characters matching the
given regular expression pattern.
count: Counts all lines that have a sequence of characters matching the
given regular expression pattern and displays the result (no other output is
displayed).
Only 1 output modifier can be used in each command. The remainder of the text
typed in is part of the regular expression pattern.
A regular expression is a pattern (a phrase, number, or more complex pattern). The
CLI String Search feature matches regular expressions to the show or more
command output. Regular expressions are case-sensitive and allow for complex
matching requirements.
A regular expression can be a single-character pattern or a multiple-character
pattern. That is, a regular expression can be a single character that matches the
same single character in the command output or multiple characters that match
the same multiple characters in the command output. The pattern in the command
output is referred to as a string. This section describes creating both
single-character patterns and multiple-character patterns. It also discusses
creating more complex regular expressions, using multipliers, alternation,
anchoring, and parentheses.
Single-Character Patterns
The simplest regular expression is a single character that matches the same single
character in the command output. You can use any letter (A-Z, a-z) or digit (0-9) as
a single-character pattern. You can also use other keyboard characters (such as !
or ~) as single-character patterns, but certain keyboard characters have special
meaning when used in regular expressions.
that have special meanings.
Character
.
*
+
?
^
$
Table
Meaning
Matches any single character, including white space.
Matches 0 or more sequences of the pattern.
Matches 1 or more sequences of the pattern.
Matches 0 or 1 occurrences of the pattern.
Matches the beginning of the string.
Matches the end of the string.
lists the keyboard characters
1
42

Advertisement

Table of Contents
loading

Table of Contents