I would like to send the contents of a text file to the OS X clipboard.
Does Mac OS X have a built in way to do this, or will I have write a script to do this myself?
Or in other words, how do I access the clipboard from the command line?
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
.