How can i get text strings from teraterm

I want to get text strings from teraterm.

For example:
There is a file ‘/tmp/aaa.txt’ on linux.
When the uipath enter the command ‘less /tmp/aaa.txt’ on teraterm, the uipath get text strings from teraterm window, assign to variable on uipath.

@tomo007,

Do you want to split/Extract only text from that string which assigned to the UiPath Variable?