2025-03-14 21:59:59 -06:00
|
|
|
# pbpaste
|
|
|
|
|
|
|
|
|
|
> Send the contents of the clipboard to `stdout`.
|
2025-03-19 19:23:44 -06:00
|
|
|
> Comparable to pressing `<Cmd v>` on the keyboard.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/pbpaste.1.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`
|