Using Regular Expressions - Siemens RUGGEDCOM ROX II User Manual

Cli
Hide thumbs Also See for RUGGEDCOM ROX II:
Table of Contents

Advertisement

Chapter 2
Using RUGGEDCOM ROX II
Parameter
save
select
tab
until
Section 2.6.6

Using Regular Expressions

RUGGEDCOM ROX II command line regular expressions are a subset of the regular expressions found in egrep
and in the AWK programming language. Regular expressions can be used along with several of the output
redirects. For more information about using output redirects, refer to
Character
Description
.
Matches any single character (e.g. .100, 100., .100.)
*
Matches zero (0) or more occurrences of a pattern
+
Matches 1 or more occurrences of a pattern
?
Match 0 or 1 occurrences of a pattern
^
Matches the beginning of the line
$
Matches the end of the line
()
Matches only the characters specified
[]
Matches any character other than those specified
_ (underscore)
The underscore character has special meanings in an autonomous system
path. It matches to:
• Each space ( ) and comma (,)
28
Description
For example, show admin | repeat 10s repeats the show admin term
every 10 seconds.
Saves the output to the specified ASCII text file.
For example, show chassis | save foo.txt saves the chassis
information to the file foo.txt
This redirect is not yet implemented.
Enforces table layout for columnar data.
Includes output until a line containing the specified text appears.
Regular expressions can be used with this redirect. For more
information about regular expressions, refer to
Regular
Expressions".
For example, show chassis | begin cpu | until status returns the
chassis information beginning with cpu and ending with status:
ruggedcom# show chassis | begin cpu | until
status
cpu
slot-cpu main
detected module "RX1501 8 Gigabit Layer 3 w/ 6
LM slots and 1 PM slots"
cpu load
22
ram avail
53
ram avail low
20
status
Section 2.6.5, "Using Output
RUGGEDCOM ROX II
CLI User Guide
Section 2.6.6, "Using
Redirects".
Example
.100
100.
.100.
100*
100+
100?
^100
100$
(38a)
[^abc]
_100,100_, _100_
Using Regular Expressions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx1500Rx1512Rx1501Rx1510Rx1511

Table of Contents