bash copy to clipboard

Scenario: You have written a really handy and useful bash script that does the wonders and parses the world to give you some great bit of information. This script is so useful that you constantly run it all the time. Copy’ing and Pasting the output has become your hobby.

Mac OS X: Let `pbcopy` save you. Just redirect your output to pbcopy (a built in MacOS command) and your contents go into the clipboard, ready for you to paste away. For example,

whoami | pbcopy

will copy the output of the command `whoami` into the clipboard :) Psst. There is something called `pbpaste` as well. And it does, well you guessed it. Have fun.

Linux Users: If you have X installed (I know I lost 75% of the readers right there), `xsel` does the same is a slightly ugly manner.

whoami | xsel —clipboard —input

White Coat Clipboard 2.0

whitecoatclipboard.com

I WANT ONE OF THESE IMMEDIATELY (preferably without all the crap on the outside, but I can cover that stuff with social work cheat sheets instead).

Barriers:

  • Back ordered on the website.
  • Sold out everywhere else.
  • Not even on eBay!
  • There are not even imitation versions.
  • I am not allowed to steal the one I saw a medical student carrying around last week.

Clearly, this item eludes me. I don’t like it. I want one. It’s the smaller solution I’ve been looking for for months to carry along with my iPad. Someone make it happen, please.

Loading more posts...