Your favourite OSX command line clipboard manipulation libraries
pbpasteported over to Windows.
- pbcopy copies the standard input and places it in the specified pasteboard.
- pbpaste copies the data from the pasteboard and writes it to the standard output.
Installation is done via Chocolatey:
# cinst pasteboard
To copy your SSH key to the clipboard:
# cd .ssh # type id_rsa.pub | pbcopy
To write the contents of your clipboard to a file:
# cd C:\tmp # pbpaste > output.txt