
9: Device Ports
SLC™ 8000 Advanced Console Manager User Guide
203
Secondary Commands
These are commands which provide data or other support to the Primary commands. These
commands are never used by themselves in a script. The preprocessor will require that these
commands always follow a left square bracket ('[') character and be followed on a single line by a
right bracket (']').
Table 9-21 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.
Содержание SLC 8000 Series
Страница 1: ...Part Number 900 704 R Revision R November 2019 SLC 8000 Advanced Console Manager User Guide ...
Страница 72: ...6 Basic Parameters SLC 8000 Advanced Console Manager User Guide 72 Figure 6 2 Network Network Settings 2 of 2 ...
Страница 88: ...6 Basic Parameters SLC 8000 Advanced Console Manager User Guide 88 Figure 6 7 Network VPN 1 of 2 ...
Страница 149: ...8 USB SD Card Port SLC 8000 Advanced Console Manager User Guide 149 Figure 8 4 Devices USB Modem ...
Страница 174: ...9 Device Ports SLC 8000 Advanced Console Manager User Guide 174 Figure 9 8 Device Ports RPMs Add Device ...
Страница 313: ...13 Maintenance SLC 8000 Advanced Console Manager User Guide 313 Figure 13 12 About SLC ...