Command line utilities to provide copy and paste using the system Clipboard
C#
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pbcopy
pbpaste
.gitignore
README.md
cl-copy-paste.sln

README.md

Summary

pbcopy and pbpaste provide provide copying and pasting via the command line, similar to their OS X counterparts.

Author

Stuart Carnie

License

pbcopy and pbpaste are MIT licensed

Help

pbcopy

  • copy contents of STDIN to clipboard

pbpaste

  • paste context of clipboard to STDOUT

Usage

pbpaste > .gitignore

  • Pastes the contents of the clipboard and outputs to a new file called .gitignore

dir /s /r | pbcopy

  • Copies the contents of the dir /s /r operation to the clipboard