Today I learned about the pbcopy command in OS X. 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:
ssh myserver -x “cat myfile” | pbcopy
Believe it or not, this… [more]
fettig.net → Blog