Access the clipboard from the command line


Download cb from github.com/niedzielski/cb.

It is a great example of an intuitive interface: it does want you want and expect by default!

Previous MacOS-specific solution:

Use pbpaste to get the contents of the clipboard

Pipe to pbcopy to put stuff into the clipboard

Date: 2017-05-23, Updated: 2024-06-01

Tags:  bash

Share: