1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 11:26:00 +02:00

Add OS X-only commands: pbcopy / pbpaste

This commit is contained in:
Philip Borenstein 2014-01-31 21:17:32 -05:00
parent f61de87eff
commit 38fd13ca03
2 changed files with 26 additions and 0 deletions

13
osx/pbcopy.md Normal file
View file

@ -0,0 +1,13 @@
# pbcopy
> Place standard output in the clipboard
> (OS X only)
- Place the contents of a file in the clipboard.
`pbcopy < {{file}}`
- Place the results of a command in the clipboard
`find . -type t -name "*.png" | pbcopy`

13
osx/pbpaste.md Normal file
View file

@ -0,0 +1,13 @@
# pbpaste
> Send the contents of the clipboard to standard output
> (OS X only)
- Write the contents of the clipboard to a file.
`pbpaste > {{file}}`
- Use the contents of the clipboard as input to a command.
`pbpaste | grep foo`