Special Characters In Scripts - Hirschmann RS20 Reference Manual

Industrial, gigabit
Hide thumbs Also See for RS20:
Table of Contents

Advertisement

Command Structure

1.1.7 Special characters in scripts

Some of the configuration parameters are strings that can contain special
characters. When the switch creates a script from the running configuration
(by use of the command #show running-config <scriptname.cli>), these spe-
cial characters are written to the script with a so-called escape character pre-
ceding them. This ensures that when applying the script, these characters
are regarded as a normal part of the configuration parameter, not having the
special meaning they usually have.
Character (plain)
Meaning, when entered in the CLI
!
Begin of a comment, ! and the rest of the line will be ignored
"
Begin or end of a string that may contain space characters
'
Begin or end of a string that may contain space characters
?
Shows possible command keywords or parameters
\
The backslash has no special meaning here but because it is used as the
escape character, it now bears a special meaning (this part of the concept
is not backward compatible).
Tab. 2: Special characters
Character (escaped)
\!
\"
\'
?
\
Tab. 3: Special characters escaped
18
Meaning, when entered in the CLI
! is part of the string
" is part of the string
' is part of the string
? is part of the string
\ is part of the string
1.1 Format
CLI L2B
Release 4.0 11/07

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents