$LOWER (convert string)
$LOWER converts the alphabetic characters specified in the argument character string to lower case.
Syntax
return-value=$LOWER(character-string)
Values
-
return-value
Specifies the name of the variable into which the character string that has been converted to lower case is set.
-
character-string
Specifies the character string to be converted, either as a constant or a variable. A constant must be enclosed in single quotation marks ('').
Status
The following table lists and describes the possible statuses:
Status |
Description |
---|---|
NORMAL |
Normal end |
NODATA |
— |
ERROR |
— |
Script execution interrupted |
An invalid argument was specified, or an error other than the above occurred. |
Example
The following example converts the host name acquired from system inventory information to lower case, and outputs the result:
[SET_VALUE] NAME = 'HOSTNAME' VAL = $LOWER(NAME) MSG = 'LOWER = ' + VAL $ECHO(MSG)
- Execution result:
-
LOWER = hostname