I have a script that outputs a string that I would like to edit and then run as a command.
For example, I am using
cat ... | xsel -p
And then I want to edit the output of `xsel -op´ and run the edited string as a new command.
So I am trying:
cat ... | xsel -p
$(xsel -op) TAB
But this of course fails.
So how can I output the contents of xsel -op
(in this case) to my command line, edit that new command, and then run the command?
Thanks