cb

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 5 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL