CLIp is a powerful yet easy to use and minimal clipboard manager for a command line environment, with no dependencies or bloat.
clip [operation] [clipboard name (optional)] [clipboard name (optional)]...
copy: Copy stdin to clipboard(s)
append: Append stdin to clipboard(s)
paste: Paste clipboard(s) to stdout
remove: Remove clipboard(s)
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 , "
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).
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