2014-02-01 02:17:32 +00:00
|
|
|
# pbpaste
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Send the contents of the clipboard to standard output.
|
2023-02-03 04:38:01 +00:00
|
|
|
> Comparable to pressing Cmd + V on the keyboard.
|
2022-02-14 11:21:43 +00:00
|
|
|
> More information: <https://ss64.com/osx/pbpaste.html>.
|
2014-02-01 02:17:32 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Write the contents of the clipboard to a file:
|
2014-02-01 02:17:32 +00:00
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`pbpaste > {{path/to/file}}`
|
2014-02-01 02:17:32 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Use the contents of the clipboard as input to a command:
|
2014-02-01 02:17:32 +00:00
|
|
|
|
|
|
|
`pbpaste | grep foo`
|