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