1 Ekim 2012 Pazartesi

Access clipboard from Command Line in Mac X

To contact us Click HERE


It lets you copy text to your clipboard from the command line. This means you can (among other things) copy the contents of a file on a remote server into your clipboard, ready for pasting:

echo 'Hello World!' | pbcopy

Pastes from your clipboard to stdout.
echo `pbpaste`

What can’t you do! Oh, you want examples? Well…

* You could grab the output of a grep/awk/sed to paste into IM/IRC.
* You could use a macro tool (like iKey, QS, et cetera) to create text modifying workflows that grab highlighted text, manipulate it, and replace it inline.
* You could pull changelogs from svn into the clipboard when tagging for release so you could email them to coworkers.

Hiç yorum yok:

Yorum Gönder