Copy text to the clipboard from the OS/X terminal

Viewed 10099

I am often having to copy and paste text from the terminal. Is there a way to redirect the output of a command into a shell variable or another command that would place the output in the clipboard?

2 Answers
Related