George V. Reilly's Technical Blog

Command-line Tools for the Clipboard

Clipboard

I mentioned in my post on reStructuredText that I use a little command-line tool, pbcopy, to pipe the output into the clipboard. I finally found a similar tool for Linux, xsel.

  • Mac: pbcopy (UTF-8 aware, unlike the built-in version of pbcopy) copies its input to the pasteboard (Mac name for the clipboard); pbpaste writes the pasteboard to stdout.
  • Linux: xsel gets and sets the X selection.
  • Windows: winclip reads and writes the clipboard in a variety of formats. Use -m for UTF-8 text. The winclip binary is available as part of the outwit package.
Posted: Feb 28 2009, 10:46 PM by george_v_reilly | with 1 comment(s)
Filed under:

Comments

Roshan said:

# April 8, 2009 7:18 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)