3Com 3C13636 Configuration Manual page 28

Router 3000 ethernet family
Hide thumbs Also See for 3C13636:
Table of Contents

Advertisement

3Com Router 3000 Ethernet Family
Configuration Guide
Metacharacter
{n}
{n,}
{n,m}
For example:
^ip: to match the target object starting with the character string "ip"
ip$: to match the target object ending with the character string "ip"
II. Benefits of regular expressions
You can use regular expressions to filter out uninterested information when a large
amount of information is present.
1)
Specify filtering mode in the command
In filtering output, you can choose from three kinds of filtering modes. In a command
that supports regular expressions, they are presented as { begin | exclude | include }
regular-expression:
begin: to output all lines starting with the line that matches the specified regular
expression.
exclude: to output all lines except for those matching the specified regular
expression.
include: to output only the lines that match the specified regular expression.
2)
Specify filtering mode between screens
If enormous information is present and output in multiple screens, you can filter
information after the prompt, "---- More ----" between screens which appears by
entering a regular expression in one of the following forms:
/regular-expression: to output all lines starting with the line that matches the
specified regular expression.
-regular-expression: to output all lines except for those matching the specified
regular expression.
+regular-expression: to output only the lines that match the specified regular
expression.
The "n" in the brace brackets is a non-negative integer,
indicating that there are consecutive n matches.
The "n" in the brace brackets is a non-negative integer,
indicating that there are inconsecutive n matches.
The "m" and "n" in the brace brackets are non-negative
integers, with n<=m. It indicates that the consecutive matches
are in the range n to m. Note that no space is allowed on either
side of the comma.
3Com Corporation
2-17
Chapter 2 User Configuration Interface
Meaning

Advertisement

Table of Contents
loading

This manual is also suitable for:

3c13636-us - router 30363000 series

Table of Contents