Search File for Text
Set Variable
Linux Package Editor Reference
This action finds a text string in a file on the Linux computer.
When the action is run, the number of occurrences found is placed in the $RETURNCODE
variable.
To complete the dialog box
Search File
Specify the file to search.
Search String
Enter the text string to search for. You can use any regular expression.
This action creates and modifies variables that are used in the Linux installation. A
variable can be set using a string expression, numeric expression, or logical expression.
Numeric expressions are run through the Linux bc command. Logical expressions are
run through the Linux Bash test command.
To complete the dialog box
Set Variable
Specify a variable, adhering to standard conventions for naming Linux shell
variables.
String Expression
Mark this to set the variable to part of a string that is stored in another variable.
Define the string in the String Function, Variable Name, and Argument fields.
String Function
Select one of the following functions to manipulate or parse text.
Note
Leaving this blank is the same as selecting Literal.
Left
Right
Sets the variable to the left portion of the string in Variable
Name
In Argument, enter the number of characters from the left
of the string to use.
Sets the variable to the right portion of the string in
Variable Name
In Argument, enter the number of characters from the right
of the string to use.
Script Actions
63
Need help?
Do you have a question about the WISE LINUX PACKAGE EDITOR 8.0 - REFERENCE V1.0 and is the answer not in the manual?
Questions and answers