Mac OS X – Pipe contents into the clipboard


On windows I used to the time when I wanted some output (from a file or command) in the clipboard.

> tracert | clip


> type data.txt | clip

And then I went of and pasted it somewhere.


Haven’t been using it on mac but today I needed it. So after googling around I found pbcopy.

> cat redis-trottle.js | pbcopy

And Bob’s your uncle!


E-postadressen publiceras inte. Obligatoriska fält är märkta *

Denna webbplats använder Akismet för att minska skräppost. Lär dig hur din kommentardata bearbetas.