![Juniper JUNOSE 11.3 Configuration Manual Download Page 69](http://html1.mh-extra.com/html/juniper/junose-11-3/junose-11-3_configuration-manual_2032852069.webp)
The filtering is performed before redirection. In the following example, the cnfgfltr.txt file
will contain the output of
show config include-defaults
beginning with the first occurrence
of the string
inter
.
host1#
show config include-defaults &> cnfgfltr.txt | begin inter
Regular Expressions
A regular expression uses special characters—often referred to as metacharacters—to
define a pattern that is compared with an input string. You can use regular expressions
to filter the output of
show
commands and to define AS-path access lists and community
lists to more easily filter routes.
For examples of using regular expressions with AS-path access lists and community lists,
see
JunosE IP Services Configuration Guide
.
Metacharacters
Table 5 on page 39 describes the metacharacters supported for regular expression
pattern-matching.
Table 5: Supported Regular Expression Metacharacters
Description
Metacharacter
Matches the beginning of the input string.
Alternatively, when used as the first character within brackets—[^ ]—matches
any number except the ones specified within the brackets.
^
Matches the end of the input string.
$
Matches any single character, including white space.
.
Matches 0 or more sequences of the immediately previous character or pattern.
*
Matches 1 or more sequences of the immediately previous character or pattern.
+
Matches 0 or 1 sequence of the immediately previous character or pattern.
?
Specifies patterns for multiple use when followed by one of the multiplier
metacharacters: asterisk *, plus sign +, or question mark ?
()
Matches any enclosed character; specifies a range of single characters.
[ ]
Used within brackets to specify a range of AS or community numbers.
– (hyphen)
Matches a ^, a $, a comma, a space, a {, or a }. Placed on either side of a string
to specify a literal and disallow substring matching. Numerals enclosed by
underscores can be preceded or followed by any of the characters listed above.
_ (underscore)
Matches characters on either side of the metacharacter; logical OR.
|
39
Copyright © 2010, Juniper Networks, Inc.
Chapter 2: Command-Line Interface
Summary of Contents for JUNOSE 11.3
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 3 x System Basics Configuration Guide...
Page 24: ...Copyright 2010 Juniper Networks Inc xxiv JunosE 11 3 x System Basics Configuration Guide...
Page 32: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 3 x System Basics Configuration Guide...
Page 146: ...Copyright 2010 Juniper Networks Inc 116 JunosE 11 3 x System Basics Configuration Guide...
Page 166: ...Copyright 2010 Juniper Networks Inc 136 JunosE 11 3 x System Basics Configuration Guide...
Page 432: ...Copyright 2010 Juniper Networks Inc 402 JunosE 11 3 x System Basics Configuration Guide...
Page 488: ...Copyright 2010 Juniper Networks Inc 458 JunosE 11 3 x System Basics Configuration Guide...
Page 524: ...Copyright 2010 Juniper Networks Inc 494 JunosE 11 3 x System Basics Configuration Guide...
Page 554: ...Copyright 2010 Juniper Networks Inc 524 JunosE 11 3 x System Basics Configuration Guide...
Page 566: ...Copyright 2010 Juniper Networks Inc 536 JunosE 11 3 x System Basics Configuration Guide...
Page 588: ...Copyright 2010 Juniper Networks Inc 558 JunosE 11 3 x System Basics Configuration Guide...
Page 613: ...PART 3 Index Index on page 585 583 Copyright 2010 Juniper Networks Inc...
Page 614: ...Copyright 2010 Juniper Networks Inc 584 JunosE 11 3 x System Basics Configuration Guide...
Page 632: ...Copyright 2010 Juniper Networks Inc 602 JunosE 11 3 x System Basics Configuration Guide...