[PLUG] cat-like command

Bill Barry bill at billbarry.org
Sun Jan 31 13:48:28 PST 2010


On Sun, Dec 20, 2009 at 2:50 PM, Brian Wood <woodbrian77 at gmail.com> wrote:
> On Sun, Dec 20, 2009 at 4:22 PM, Brian Wood
>
>> Also returning to the question about copy/paste, someone
>> suggested xclip.  I downloaded it and built it, but so far am
>> not getting it to do what I want.  I've tried:
>>
>>
> I got it now --
>
> cat file | xclip -sel clip
>

Or if you happen to have xsel installed
cat file | xsel -b
The xsel man page has a nice description of the three types of X
selections. -b puts stuff in the clipboard selection which is what you
were doing with the xclip command above.

Bill Barry



More information about the PLUG mailing list