Previous Next
Opalis Integration Pack for UNIX > Objects > Delete Line

Delete Line
The Delete Line object is used to delete lines that you specify from a text file.
How it is used
Use the Delete Line object to delete text log entries after they are no longer needed.
Configuration
To configure the Delete Line object you need to know the path and filename of the text file that you want to delete from, and the line numbers of the lines that you want to delete.
Details tab
 
File
Type the path and file name that you want to delete lines from.
Lines
Type the line numbers that you want to delete, separated by a comma or a hyphen. For example, if you type 1,3,5, lines 1, 3, and 5 will be deleted. If you type 9-17, lines 9 to 17 (inclusive) will be deleted. You could also type 1,3,5,9-17 to combine individual lines and ranges of lines in the delete operation.
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 file that you are deleting lines from.
Full text of the file
The full text of the file that you are deleting lines from, after the lines have been deleted.
Line Text
The text of the lines that were deleted from the text file.
Line Number
The line numbers that were deleted from the text file.
Number of lines
The number of lines that were deleted from the text file.
Common Published Data

Previous Next