xclip paste without ending return statement
I have a small script which extracts some text and pipes it to xclip ready for pasting somewhere else by using
The problem I'm having is that the return string giving back from xclip always has a return statement added at the end of it. This is very well for pasting on a text editor but if I want to paste it on the terminal as one of the parameters everytime I paste it it ends the command not allowing me to enter the full command.
$ some command | xclip -selection c
So, is there a way to paste from xclip without the ending return statement?
$ comand (xclip paste) some more command
Let the source be with you...