I just discovered this handy command in OS X:
pbcopy. It lets you pipe the output of a command right into the clipboard (or the ‘pasteboard’) so you can paste it into some non terminal application next. A convenient way to avoid having to scroll up and select the text in the terminal by hand.
cat myfile.txt | pbcopy