Command output to clipboard
I want to redirect the shell command output to clipboard (just like outputting to ordinary files). How to do this in shell.
wats the clipboard file name? Any ideas. Thanks |
I do not know how to redirect the output that way. I usually just use my wheel mouse to cut and past what I need from one place to another. That will work in either the text mode or the graphical mode. Lets say that I have run a command under the bash shell in a terminal window. I left-click and drag to highlight the text. I then go to where I want to past the information and press the middle wheel of my mouse. I do not rotate the wheel, I actually click the middle wheel. Many people do not realize that the middle wheel can be clicked.
The tricky part is to not accidently highlight something else before pasting the results. That part takes a little practice. If you do not have a wheel mouse Linux can be configured so that pressing both buttons at once will be the same thing as clicking the wheel. |
That useful when u wanna manually doing the stuff. I actually want to do it from my code, and want this behaviour to be automated. Putting output to clipboard is the only solution i prefer.
|
All times are GMT -5. The time now is 03:43 PM. |