Skip to content

Instantly share code, notes, and snippets.

@adamveld12
Created May 19, 2015 01:44
Show Gist options
  • Save adamveld12/670df5eafc9e04dd0031 to your computer and use it in GitHub Desktop.
Save adamveld12/670df5eafc9e04dd0031 to your computer and use it in GitHub Desktop.
pipe to clipboard

On Windows, try: echo hello | clip

On Linux, try: echo hello | xclip

On Mac OS X, try: echo hello | pbcopy / pbpaste

For example, you might do (cat myFile.txt | xclip). This would basically allow you to edit the clipboard directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment