Mac Osx pbcopy and pbpaste, provide copying and pasting to the pasteboard (the Clipboard) from command line, it does accept data from the standard input, so, you can find amazing uses for it

find . -name *txt | pbcopy