mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 11:46:00 +02:00
Merge pull request #65 from pborenstein/master
Add OS X-only commands: pbcopy / pbpaste
This commit is contained in:
commit
5bae3ffdba
2 changed files with 24 additions and 0 deletions
12
osx/pbcopy.md
Normal file
12
osx/pbcopy.md
Normal 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
12
osx/pbpaste.md
Normal 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`
|
||||
|
Loading…
Add table
Reference in a new issue