pbcopy and pbpaste: the Mac Clipboard from the Command Line
The Mac clipboard has a command-line front door. pbcopy reads standard input into the clipboard, and pbpaste writes the clipboard back out. Two commands, one man page, both sitting in /usr/bin. What trips people up…









