A simple shell script that provides commands to cut, copy, and paste files from the command line. The motivation and basic usage is explained in this blog post.
I had previously implemented similar functionality as a much more complicated Python tool, which you can see in earlier commits of this repo.
Arrange for xcp.sh to be sourced by your shell, and run
mkdir ~/.xcponce before using it.
xmark <files> # add some files to the clipboard
xcp <dest> # copy clipboard files somewhere
xmv <dest> # move clipboard files somewhereNote that the clipboard files can be copied to as many destinations as desired, but they can only be moved once.
MIT