Get LineThe Get Line object is used to retrieve a line or range of lines from a file for use in another object.How it is usedUse the Get Line object to retrieve specific lines from a file and use them in other objects as Published Data items.ConfigurationTo configure the Get Line object you need to know the filename and path that you want to get the line from, and which line or range of lines you want to retrieve.Details tab
File Type the path and filename of the file that you want to retrieve lines from. Get Select an option to indicate which line or lines you want to retrieve from the file:
• Last line only – retrieve only the last line of the file.
• Line number – retrieve a specific line from the file. Type the line number in the field.
• Last X lines – retrieve the last x number of lines from the file. Type the number of lines in the field. For example, if you type 10, the object will retrieve the last 10 lines from the file.
• Line X to last line – retrieve all lines from a line that to specify to the last line. Type the line number in the field. For example, if your file contains 50 lines, and you type 40 in the field, the object will retrieve lines 40 to 50, inclusive.
• Line range – retrieve a specific range of lines from the file. Type the first line number in the range in the From field, and type the last number in the range in the To field. For example, if you type 15 and 21 in the From and To fields, the object will retrieve lines 15 to 21 from the file.Connection tabYou 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 searched in. Full text of the file The full text of the file that you searched in. Line Text The text of the lines that you retrieved. Line Number The line number or numbers that you specified. Number of lines The total number of lines in the text file.