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

https://github.com/refi64/clip

A simple shell script that wraps xclip and/or xsel in a portable way.
https://github.com/refi64/clip

Last synced: 10 months ago
JSON representation

A simple shell script that wraps xclip and/or xsel in a portable way.

Awesome Lists containing this project

README

          

clip
====

A simple shell script that wraps xclip and/or xsel in a portable way.

How to install
**************

::

$ curl https://raw.githubusercontent.com/kirbyfan64/clip/master/clip | sudo bash /dev/stdin -i

Or::

$ git clone https://github.com/kirbyfan64/clip.git
$ cd clip
$ sudo bash clip -i

Examples
********

Copy standard input::

$ echo stuff | clip

Copy file contents::

$ clip myfile

Paste to standard output::

$ clip -o

Paste to file::

$ clip myfile

Copy/paste while stripping newlines::

$ echo 123 | clip -n
$ clip -on

Use xsel instead of xclip when possible::

$ clip -s other_stuff_goes_here