Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 466 Bytes

README.md

File metadata and controls

39 lines (33 loc) · 466 Bytes

cb

Usage

Copy file contents to clipboard:

cb file.txt

Copy stdin contents to clipboard:

echo foo | cb

Omit exactly one trailing line break if it exists:

echo foo | cb -n
# or
echo -n foo | cb

Manually write the clipboard:

cb
Hello World!^D # ^D = Ctrl+D (send EOF)

Write clipboard to stdout:

cb -o

Write clipboard to file:

cb -o file.txt

Installation

go get -u github.com/setlog/cb