Home » Questions » Computers [ Ask a new question ]

How to Send the Contents of a Text File to the Clipboard from the Command Line in OS X?

How to Send the Contents of a Text File to the Clipboard from the Command Line in OS X?

I would like to send the contents of a text file to the OS X clipboard.

Asked by: Guest | Views: 100
Total answers/comments: 1
Guest [Entry]

"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"