How to Send the Contents of a Text File to the Clipboard from the Command Line in OS X?

Nevermind, figured it out.

 pbcopy < filename

  #copies contents of a text, rtf, or eps file to the clipboard


  pbpaste

  #pastes content of clipboard to stdout

Yep, that's the way to go. Of course, you can also pipe output into it, ie, echo "test" | pbcopy.