pbpaste
Send the contents of the clipboard to stdout
.
Comparable to pressing Cmd + V on the keyboard.
More information: https://ss64.com/osx/pbpaste.html.
-
Write the contents of the clipboard to a file:
pbpaste > {{path/to/file}}
-
Use the contents of the clipboard as input to a command:
pbpaste | grep foo
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.