Oct
8th
2010
Fri
8th
2010
Piping command line output to the clipboard on OSX
Apparently, you can pipe output to the pbcopy binary, and it will put the output of the command directly on the clipboard. Useful!
I have a ruby script that dynamically generates my email signature to include links to a few of my recent posts, and it’s really handy to be able to copy this directly to the clipboard instead of having to go through a file.
http://www.digitalmediaminute.com/article/2287/copy-to-clipboard-shell-command