Clipy
Clipy is a small command line utility to sending data to your clipboard.
Usage
Clipy can send data to your clipboard either via standard input (pipes) or from a file:
echo "Send me to your clipboard" | clipy
# Or
clipy /path/to/file.ext
In most cases, a user would have clipy as the final step of the process and would prefer clipy not to write out whatever data it took in. However, if you choose to put clipy somewhere else in a list of pipe-connected utilities, simply use the -o / --output
flag:
clipy -o path/to/file.ext | grep ...
Install
go install github.com/jtschwartz/clipy@latest