CLIp v2
About
CLIp is a powerful yet easy to use and minimal clipboard manager for a command line environment, with no dependencies or bloat.
Usage
Syntax :
clip [operation] [clipboard name (optional)] [clipboard name (optional)]...
Operations :
c
orcopy
: Copy stdin to clipboard(s)a
orappend
: Append stdin to clipboard(s)p
orpaste
: Paste clipboard(s) to stdoutr
orremove
: Remove clipboard(s)
Brief :
-
CLIp reads from stdin when copying / appending and writes to stdout when pasting, so you'll use shell redirection operators.
-
It takes arguments for the operation and , optionally, clipboard name(s).
-
Clipboards are files on disk, so they have no limitations of type of data stored or filesize in and of themselves.
-
It can create and save to named clipboards, and when given no names or given an empty argument (
""
) , it saves to the default clipboard , ".clipboard.clip
" . -
Clipboards can be copied to (overwritten with new data), appended to (new data added at the end) , pasted from (write contents to stdout) and removed (file deleted).
Examples :
dmesg | clip c # Copy output of dmesg to default clipboard in current working directory (cwd)
lsblk | clip a "" drives # Append output of lsblk to default clipboard and clipboard named drives in cwd
clip p | gzip > logs.zip # Paste default clipboard in cwd to gzip
clip p drives > drive_log.txt # Pipe clipboard named drives in cwd to drive_log.txt
clip r "" drives # Remove the default clipboard and the clipboard named drives in the cwd