What an amazing tool in MacOSX it is! Today I had a file which I need to copy it's content to my gist editor on web pages. A GUI program would be fine but I prefer to find something cool that can handle this in only one step. And I found a cool thing indeed from [here][].
cat file | pbcopy
the content of file has already been in your clipboard. Enjoy it! [here]: http://superuser.com/questions/113529/how-can-i-load-a-files-contents-into-the-clipboard