Home > Mac OS X, Programming > Pipe into the clipboard on OS X: pbcopy

Pipe into the clipboard on OS X: pbcopy

I just discovered this handy command in OS X: pbcopy. It lets you pipe the output of a command right into the clipboard (or the ‘pasteboard’) so you can paste it into some non terminal application next. A convenient way to avoid having to scroll up and select the text in the terminal by hand.

Example:

cat myfile.txt | pbcopy

Categories: Mac OS X, Programming Tags: , ,
  1. kristjan
    July 28th, 2009 at 08:29 | #1

    Tack som fan. Den där underlättar!!!!

  1. No trackbacks yet.