Files
cheatsheet-tldr/tldr/osx/pbcopy

19 lines
460 B
Plaintext

---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# pbcopy
> Copy data from `stdin` to the clipboard.
> Comparable to pressing Cmd + C on the keyboard.
> More information: <https://keith.github.io/xcode-man-pages/pbcopy.1.html>.
- Place the contents of a specific file in the clipboard:
`pbcopy < {{path/to/file}}`
- Place the results of a specific command in the clipboard:
`find . -type t -name "*.png" | pbcopy`