Just found you can communicate (copy/paste) with the clipboard (or pasteboard) from the command line; most likely to be found useful in shell scripts...
The commands are pbcopy and pbpaste:
echo -n "copy this" | pbcopy
copies the string 'copy this' to the clipboard (the -n is to keep echo from adding a newline).
Simply running pbpaste will output what's in the clipboard.
The commands are pbcopy and pbpaste:
echo -n "copy this" | pbcopy
copies the string 'copy this' to the clipboard (the -n is to keep echo from adding a newline).
Simply running pbpaste will output what's in the clipboard.