copy_to_clipboard

A command-line program to copy the contents of any file to the clipboard

Installation

To install copy_to_clipboard, simply run:

gem install copy_to_clipboard

How does it work?

You just need to run the copy_to_clipboard command in your terminal passing the file you would like to copy the content to the clipboard, such as the bellow example, and the magic happens =P

copy_to_clipboard my_file.txt