Previous Next
Opalis Integration Pack for UNIX > Objects > Replace Text

Replace Text
The Replace Text object is used to search for a string in a file and replace it with another string.
How it is used
Use the Replace Text object to change an entry in a text file in response to changes in your infrastructure.
Configuration
To configure the Replace Text object you need to know the path and filename of the file that you want to replace text in, the text that will be replaced, and the text that you will replace the original text with.
Details tab
 
File
Type the path and filename of the file that you want to replace text in.
Text to match
Type the text that you want to replace.
Replacement text
Type the text that you want to replace the original text with.
Case sensitive
Check this check box to perform a case-sensitive search.
Connection tab
You must configure a connection to a UNIX computer before you can use this object. To configure a connection, see Connecting to a UNIX Server for instructions.
Select the connection name that you want to use from the Server drop-down list.
Available Published Data
 
Name
Description
SSHCmdOutput
The output from the executed SSH command.
Status Message
The status message for this object.
File name with path
The full path and filename of the text file that you replaced text in.
Full text of the file
The full text of the file including the text that was replaced.
Line Text
The text that replaced the original text.
Line Number
The line number in the text file where this text was placed.
Number of lines
The total number of lines in the text file after this text was replaced.
Common Published Data

Previous Next