The following two commands let you use the Mac OS X clipboard in terminal:
pbcopy pbpaste #examples cat text.txt | pbcopy pbpaste > copy_of_text.txt