An open API service indexing awesome lists of open source software.

https://github.com/setlog/cb

Read and write clipboard contents with file and standard IO on the command line.
https://github.com/setlog/cb

Last synced: 4 months ago
JSON representation

Read and write clipboard contents with file and standard IO on the command line.

Awesome Lists containing this project

README

          

# cb
## Usage
Copy file contents to clipboard:
```sh
cb file.txt
```

Copy stdin contents to clipboard:
```sh
echo foo | cb
```

Omit exactly one trailing line break if it exists:
```sh
echo foo | cb -n
# or
echo -n foo | cb
```

Manually write the clipboard:
```sh
cb
Hello World!^D # ^D = Ctrl+D (send EOF)
```

Write clipboard to stdout:
```sh
cb -o
```

Write clipboard to file:
```sh
cb -o file.txt
```

## Installation
```sh
go get -u github.com/setlog/cb
```