From 38fd13ca0304ba3d76dd7f148fca649bbd110bc8 Mon Sep 17 00:00:00 2001 From: Philip Borenstein Date: Fri, 31 Jan 2014 21:17:32 -0500 Subject: [PATCH 1/2] Add OS X-only commands: pbcopy / pbpaste --- osx/pbcopy.md | 13 +++++++++++++ osx/pbpaste.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 osx/pbcopy.md create mode 100644 osx/pbpaste.md diff --git a/osx/pbcopy.md b/osx/pbcopy.md new file mode 100644 index 0000000000..f3a7bc16c8 --- /dev/null +++ b/osx/pbcopy.md @@ -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` + diff --git a/osx/pbpaste.md b/osx/pbpaste.md new file mode 100644 index 0000000000..f07e659813 --- /dev/null +++ b/osx/pbpaste.md @@ -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` + From 3067eb79430265ccf6a7465d51c5a0bcf4740b48 Mon Sep 17 00:00:00 2001 From: Philip Borenstein Date: Sat, 1 Feb 2014 01:21:18 -0500 Subject: [PATCH 2/2] Remove 'OS X only' --- osx/pbcopy.md | 1 - osx/pbpaste.md | 1 - 2 files changed, 2 deletions(-) diff --git a/osx/pbcopy.md b/osx/pbcopy.md index f3a7bc16c8..b6e307d6e7 100644 --- a/osx/pbcopy.md +++ b/osx/pbcopy.md @@ -1,7 +1,6 @@ # pbcopy > Place standard output in the clipboard -> (OS X only) - Place the contents of a file in the clipboard. diff --git a/osx/pbpaste.md b/osx/pbpaste.md index f07e659813..f725135771 100644 --- a/osx/pbpaste.md +++ b/osx/pbpaste.md @@ -1,7 +1,6 @@ # pbpaste > Send the contents of the clipboard to standard output -> (OS X only) - Write the contents of the clipboard to a file.