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

Merge pull request #65 from pborenstein/master

Add OS X-only commands: pbcopy / pbpaste
This commit is contained in:
Romain Prieto 2014-02-01 02:54:18 -08:00
commit 5bae3ffdba
2 changed files with 24 additions and 0 deletions

12
osx/pbcopy.md Normal file
View file

@ -0,0 +1,12 @@
# pbcopy
> Place standard output in the clipboard
- 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`

12
osx/pbpaste.md Normal file
View file

@ -0,0 +1,12 @@
# pbpaste
> Send the contents of the clipboard to standard output
- 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`