Paste clipboard contents to standard output.

Synopsis

pbpaste

Description

Reads the current contents of the system clipboard via the browser's Clipboard API and writes them to standard output.

Examples

$ pbpaste

Print the clipboard contents.

$ pbpaste > notes.txt

Save clipboard contents to a file.

Notes

Requires clipboard-read permission in the browser.

See Also

pbcopy, xclip, xsel