diff --git a/osx/pbcopy.md b/osx/pbcopy.md new file mode 100644 index 0000000000..b6e307d6e7 --- /dev/null +++ b/osx/pbcopy.md @@ -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` + diff --git a/osx/pbpaste.md b/osx/pbpaste.md new file mode 100644 index 0000000000..f725135771 --- /dev/null +++ b/osx/pbpaste.md @@ -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` +