Archive

Posts Tagged ‘cli’

Pipe into the clipboard on OS X: pbcopy

July 27th, 2009 1 comment

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: , ,