snippetbashTip
pbpaste — Send the contents of the clipboard to `stdout`. Comparable to pressing `<Cmd v>` on the keyboard. Mo
Viewed 0 times
thesendcommandcontentsclipboardclipbpaste
macos
Problem
How to use the
pbpaste command: Send the contents of the clipboard to stdout. Comparable to pressing <Cmd v> on the keyboard. More information: <https://keith.github.io/xcode-man-pages/pbcopy.1>.Solution
pbpaste — Send the contents of the clipboard to stdout. Comparable to pressing <Cmd v> on the keyboard. More information: <https://keith.github.io/xcode-man-pages/pbcopy.1>.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 search_string}}Code Snippets
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 search_string}}Context
tldr-pages: osx/pbpaste
Revisions (0)
No revisions yet.