Neil Parker wrote:
Patrick Wade wrote,

Jason LaPier wrote:

How do I redirect shell (bash) output to the clipboard?

I know I can manually select it or redirect it to a file, but it's long and
I'm just going to copy and paste anyway - I know there's a way to > or | it
straght to clip...


A utility called xclip is what you want; can take stdin to clipboard or dump stdout from clipboard.


Except that it's not always available.  There's nothing resembling it on
my Slackware system.  There is "xclipboard", but it only views and saves
the clipboard...it doesn't read from stdin, or anywhere else.


You can get source at http://people.debian.org/~kims/xclip/

It also addresses briefly the issues with X "clipboards" you mentioned.

--
On two occasions I have been asked [by members of Parliament!], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able rightly to apprehend the kind of
confusion of ideas that could provoke such a question.
        -- Charles Babbage
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to