Mac tip: pipe text from the terminal to the clipboard

February 26, 2011

Via Fantastip (from a Google search): if you’re in the Mac terminal and want to pipe output to the OSX clipboard, use pbcopy, e.g.

echo "copyme" | pbcopy