Linux Package Editor Reference
64
Script Actions
z
Variable Name
The functions in String Function act on the string that is represented by the
variable you specify here.
z
Argument
If the function in String Function requires an argument, enter it here. You can
enter a variable, preceded by $ and adhering to standard conventions for naming
Linux shell variables.
z
Numeric Expression
Mark this to set the variable to the value of a numeric expression, which you enter
in Expression.
z
Logical Expression
Mark this to set the variable to the value of a logical expression, which you enter in
Expression.
z
Expression
If you select Numeric Expression or Logical Expression, enter the expression
here.
Mid
Sets the variable to the middle portion of the string in
Variable Name (from a specified starting point to the end of
the string)
In Argument, enter the starting point as the number of
characters from the left of the string. Example: If the string
is 12345, and you specify 2 as the starting point, this returns
2345.
Concat
Joins the string in Variable Name and the literal text or
variable value in Argument
Instr
Determines if a substring is present within an original string
In Argument, enter the substring.
Before
Returns the portion of a string before a specified substring
In Argument, enter the substring. Example: If the string is
12345, and you specify 4 as the substring, this returns 123.
After
Returns the portion of a string after a specified substring
In Argument, enter the substring. Example: If the string is
12345, and you specify 2 as the substring, this returns 345.
Lcase
Converts all characters in the string in Variable Name to
lowercase
Ucase
Converts all characters in the string in Variable Name to
uppercase
Ltrim
Deletes all leading spaces from the string in Variable Name
Rtrim
Deletes all trailing spaces from the string in Variable Name
Literal
Sets the variable to the literal contents of the Argument
field
No variable substitution is made.
Variable
Sets the variable to the string in Variable Name