Copy output from Linux terminal

Hello everyone,

I’m trying to choose from a list in a linux terminal, this is the output of the command line ( choosenv) :


This is what i managed to do so far, with clear scrollback and copy all to clipboard :


Now what i need to do is the following :

 - Compare every item of this list(that can go up to 10-15 items) to a string i have stored earlier
 - And choose the number corresponding to the item and type it afterwards

You can copy the entire text data into a string and split the string based on a new line.
Now iterate the array of strings and keep a of condition to check your condition, then go on…

1 Like

You should go for Regex expressions, using the Matches activity using the text coming out of that terminal, experiment with it on until you get a hang of if or if in trouble paste the text you got that we help you out.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.