PBCOBY

To copy text from Mac OSX terminal to the clipboard you just need to use the pbcopy command like this.

echo 'This is going to your clipboard' | pbcopy

You can now paste away my friend.