8: Device Ports
SLC™ 8000 Advanced Console Manager User Guide
143
Table 8-18 Secondary Commands
Command
Description
string
The
string
command provides a series of string manipulation operations. The
string
command will only be used with the
set
command to generate a value for
a variable. There are nine operations provided by the
string
command. Syntax
(varies by operation):
string compare <str 1> <str 2>
Compare two strings
string match <str 1> <str 2>
Determine if two strings are equal
string first <str needle> <str haystack>
Find and return the index of the first occurrence
of 'str_needle' in 'str_haystack'
string last <str needle> <str haystack>
Find and return the index of the last occurrence of
'str_needle' in 'str_haystack'
string length <str>
Return the length of 'str'
string index <str> <int>
Return the character located at position 'int' in
'str'
string range <str> <int start> <int end>
Return a string consisting of the characters in
'str' between 'int start' and 'int end'
string tolower <str>
Convert <str> to lowercase
string toupper <str>
Convert <str> to uppercase
string trim <str 1> <str 2>
Trim 'str 2' from 'str 1'
string trimleft <str 1> <str 2>
Trim 'str 2' from the beginning of 'str 1'
string trimright <str 1> <str 2>
Trim 'str 2' from the end of 'str 1'
In each of the above operations, each <str *> element can either be a quoted string
or a variable reference. The <int *> elements will be either words or variable
references.
expr
This command evaluates an arithmetic expression and returns the result. The
expr
command will only be used in combination with the
set
command to generate a
value for a variable. Syntax:
expr <value> <operation> <value>
Each
<value>
will be either a word or a variable reference, and <operation> an
arithmetic operation.
Содержание SLC 8000
Страница 1: ...Part Number 900 704 R Revision B October 2014 SLC 8000 Advanced Console Manager User Guide ...
Страница 86: ...7 Services SLC 8000 Advanced Console Manager User Guide 86 Figure 7 4 Services Secure Lantronix Network ...
Страница 173: ...10 Connections SLC 8000 Advanced Console Manager User Guide 173 To display global connections connect global show ...
Страница 214: ...11 User Authentication SLC 8000 Advanced Console Manager User Guide 214 Figure 11 11 User Authentication SSH Keys ...
Страница 221: ...11 User Authentication SLC 8000 Advanced Console Manager User Guide 221 Figure 11 13 User Authentication Custom Menus ...
Страница 248: ...12 Maintenance SLC 8000 Advanced Console Manager User Guide 248 Figure 12 12 About SLC ...