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
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`