# Ubuntu – A command-line clipboard copy and paste utility

clipboardcommand linesoftware-recommendation

In Windows I used command-line clipboard copy-and-paste utilities…

• pclip.exe and gclip.exe

These were UnixUtils ports for Windows (but they only handled plain text). There were a couple of other native Windows utilities which could write/extract any format.

I've looked for something similar in Synaptic Package Manager, but I can't find anything.

Is there something there, that I've missed? … or maybe this is available in Bash scripting?

The type of utility I'd like will be able to read/write via std-in/std-out or file-in/file-out, and handle Unicode, Rich Text Format, picture, etc. clipboard formats…

NB: I'm not after a clipboard manager.

xsel can copy and paste to three different "clipboards".
xsel --clipboard < new-clipboard-contents.txt